PdfPageSize constructor

const PdfPageSize({
  1. required double widthPt,
  2. required double heightPt,
})

Creates a PdfPageSize with the given widthPt and heightPt in points.

Both values must be positive. A value of zero or negative indicates a malformed page in the PDF; callers should guard against this before passing dimensions to PdfDocument.renderPageToBytes.

Implementation

const PdfPageSize({required this.widthPt, required this.heightPt});