// Set the font to the built-in Khmer font final font = FlutterKhmerPdfFont.khmerFont();
Here's an example of how to generate a PDF with Khmer text using :
// Save the PDF document to a file final file = await pdf.saveToFile('example.pdf'); Flutter Khmer Pdf
To get started with , add the following dependency to your pubspec.yaml file:
import 'package:flutter_khmer_pdf/flutter_khmer_pdf.dart'; // Set the font to the built-in Khmer
print('PDF saved to ${file.path}'); }
void main() async { // Create a new PDF document final pdf = FlutterKhmerPdfDocument(); To get started with
// Add a page to the PDF document final page = pdf.addPage();