If you have a PDF that shows scrambled text (e.g., characters overlapping), use pdftocairo to re-render it as a new PDF:
For Khmer speakers looking to learn Linux, a great place to start is with the project. While originally aiming for a full "Khmer Linux distribution," KhmerOS's primary legacy has been the localization of open-source software, including the development of Khmer documentation and training materials in PDF format. Another excellent repository of free knowledge is "Awesome Khmer Language" on GitHub, which compiles numerous resources for developers and learners.
This article serves as a comprehensive guide to both areas. First, we'll explore where you can find PDF guides for learning Linux in Khmer. Then, we'll delve into a practical, step-by-step tutorial on using Linux's powerful command-line tools to automatically generate a PDF document with Khmer text.
If creating a PDF, make sure you are using a Unicode-compliant editor and that the PDF producer embeds the fonts.
sudo apt install poppler-utils pdftocairo -pdf broken_khmer.pdf fixed_khmer.pdf
Open your Khmer PDF, go to Settings > Configure Backend , and ensure "Use smooth text" is disabled for complex scripts.