pdf.addPage(pw.Page( pageFormat: PdfPageFormat.a4, build: (context) => pw.Column(children: [ pw.Text('វិក្កយបត្រ (Invoice)', style: pw.TextStyle(font: font, fontSize: 30)), pw.SizedBox(height: 20), pw.Text('ឈ្មោះ៖ ម៉េង ម៉េង', style: pw.TextStyle(font: font, fontSize: 16)), pw.Text('សរុបទឹកប្រាក់៖ ១,០០០,០០០ រៀល', style: pw.TextStyle(font: font, fontSize: 16)), ]), ));
The PDF library does not support Khmer complex shaping (GSUB/GPOS tables). Solution: Always use a font with full Khmer OpenType support (e.g., Khmer OS Muol , Noto Sans Khmer ). The pdf package version 3.0+ uses HarfBuzz shaping, which improves Khmer rendering. Flutter Khmer Pdf