Khmer text out of any PDF អក្សរ

Copy Khmer from a PDF and you often get scrambled letters. khpdf reads the fonts inside the file and gives back correct Khmer Unicode, as plain text, Markdown or JSON. Open source, written in Rust.

Read the docs → Try it with your PDF $ pip install khmerpdf
1 Standard extraction gives pdftotext
2 khpdf gives khpdf

Real output from public documents. The first box is Poppler's pdftotext; the second is khpdf on the same page.

Try it

Drop a PDF to see its Khmer text. khpdf runs inside this page as WebAssembly.

Your PDF stays on your computer. Nothing is uploaded.

What it fixes

Each problem below was found in a real Cambodian PDF and has a regression test. See them all with examples.

Next steps