How to create a custom page width using the Dart PDF package? How to create a custom page width using the Dart PDF package? dart dart

How to create a custom page width using the Dart PDF package?


  pageFormat: PdfPageFormat(8 * PdfPageFormat.cm, 20 * PdfPageFormat.cm, marginAll: 0.5 * PdfPageFormat.cm),

would give you a 8x20 cm page with 5mm margin