What it works on
Any PDF with a text layer. Not scans.
A quick test: open the PDF and try to select some text. If you can select it, even if it pastes as garbage, khpdf can very likely read it. If the whole page selects as one picture, it is a scan.
Works well
| Kind of document | Tested on |
|---|---|
| Word, including Microsoft 365, with Khmer OS fonts | World Bank 2016, ADB 2014โ2023, UN Human Rights Council 2025 |
| Limon legacy fonts (roughly 1995โ2012) | ILO training manual, LICADHO 2004 report, ADB 2012 book |
| InDesign with complete fonts (Kantumruy Pro and others) | UNDP 2024 |
| Tables, numbered lists, mixed Khmer and English | LICADHO statistics tables, World Bank acronym list |
| Sideways landscape pages and diagrams | ADB 2011, ADB 2012 |
Not yet
| Scanned PDFs | Detected and reported as needing OCR. khpdf does no OCR. Official announcements from ministries are often scans. |
| InDesign files with fonts cut down to bare glyphs | Partly readable. Seen with the Content and Moul fonts. |
| ABC and Khek legacy fonts | Detected, but decoded with the Limon table, which is likely wrong for them. |
| Complex layouts | Posters and diagrams: the text is right, the arrangement can be imperfect. |
Found a PDF that comes out wrong? See Troubleshooting.