PdfPage class

Provides methods and properties to create PDF pages and its elements, PdfPage.

//Create a new PDF documentation
PdfDocument document = PdfDocument();
//Create a new PDF page and draw the text
    'Hello World!!!',
    PdfStandardFont(PdfFontFamily.helvetica, 27),
    brush: PdfBrushes.darkBlue,
    bounds: const Rect.fromLTWH(170, 100, 0, 0));
//Save the document.
List<int> bytes = await document.save();
//Dispose the document.


Initializes a new instance of the PdfPage class.


annotations PdfAnnotationCollection
Gets a collection of the annotations of the page- Read only.
no setter
defaultLayer PdfPageLayer
Gets the default layer of the page (Read only).
no setter
defaultLayerIndex int
Gets or sets index of the default layer (Read only).
no setter
formFieldsTabOrder PdfFormFieldsTabOrder
Gets or sets the tab order type for form fields
getter/setter pair
graphics PdfGraphics
Gets the graphics of the defaultLayer.
no setter
hashCode int
The hash code for this object.
no setterinherited
layers PdfPageLayerCollection
Gets the collection of the page's layers (Read only).
no setter
rotation PdfPageRotateAngle
Gets or sets the rotation of PDF page
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
Gets size of the PDF page- Read only
no setter


createTemplate() PdfTemplate
Creates a template from the page content.
getClientSize() Size
Get the PDF page size reduced by page margins and page template dimensions.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.