PdfPage class

An integral part of a document is its page, which contains a method render for rendering into an image

Constructors

PdfPage({required PdfDocument document, required String id, required int pageNumber, required int width, required int height, required Lock lock})

Properties

document PdfDocument
final
hashCode int
The hash code for this object.
no setteroverride
height int
Page source height in pixels
final
id String
Page unique id. Needed for rendering and closing page. Generated when opening page.
final
isClosed bool
Is the page closed
getter/setter pair
pageNumber int
Page number in document. Starts from 1.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
Page source width in pixels
final

Methods

close() Future<void>
Before open another page it is necessary to close the previous.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render({required int width, required int height, PdfPageFormat format = PdfPageFormat.PNG, String? backgroundColor, Rect? cropRect, int quality = 100, bool removeTempFile = true}) Future<PdfPageImage?>
Render a full image of specified PDF file.
toString() String
A string representation of this object.
override

Operators

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