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. [...]
read-only, override
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
read / write
pageNumber int
Page number in document. Starts from 1.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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 non-existent method or property is accessed. [...]
inherited
render({int width, int height, PdfPageFormat format: PdfPageFormat.PNG, String backgroundColor, Rect cropRect}) Future<PdfPageImage>
Render a full image of specified PDF file. [...]
toString() String
Returns a string representation of this object.
override

Operators

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