The pdf package requires you to load the font as bytes. Here is the critical part: to allow the underlying HarfBuzz shaping engine to process Khmer correctly.
When working with PDFs in Flutter (whether for Khmer language apps or general use), these are the standard packages you will find in most tutorials: flutter khmer pdf
This comprehensive guide covers how to display Khmer text properly, generate high-quality PDFs, and overcome common layout bugs in Flutter. The Challenge with Khmer Script in PDFs The pdf package requires you to load the font as bytes