PdfPage class abstract

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 double width, required double height, required bool autoCloseAndroid})

Properties

autoCloseAndroid → bool
final
document → PdfDocument
final
hashCode → int
The hash code for this object.
no setteroverride
height → double
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 → double
Page source width in pixels
final

Methods

close() → Future<void>
Before open another page it is necessary to close the previous.
createTexture() → Future<PdfPageTexture>
Create a new Flutter Texture. The object should be released by calling dispose method after use it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render({required double width, required double height, PdfPageImageFormat format = PdfPageImageFormat.jpeg, String? backgroundColor, Rect? cropRect, int quality = 100, bool forPrint = false, 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