PdfPageSize.custom constructor

PdfPageSize.custom({
  1. required double width,
  2. required double height,
  3. String? name,
})

Create a custom page size width and height are in points (72 points = 1 inch)

Implementation

factory PdfPageSize.custom({
  required double width,
  required double height,
  String? name,
}) {
  return PdfPageSize._(
    width: width,
    height: height,
    name: name ?? 'Custom',
  );
}