PdfDocument class
PDF page image renderer
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Document unique id.
Generated when opening document.
final
- isClosed ↔ bool
-
Is the document closed
getter/setter pair
- pagesCount → int
-
All pages count in document.
Starts from 1.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceName → String
-
Needed for toString method
Contains a method for opening a document (file, data or asset)
final
Methods
-
close(
) → Future< void> - After you finish working with the document, you should close it to avoid memory leak.
-
getPage(
int pageNumber) → Future< PdfPage> - Get page object. The first page is 1.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
openAsset(
String name) → Future< PdfDocument> - Open PDF document from application assets
-
openData(
Uint8List data) → Future< PdfDocument> - Open PDF file from memory (Uint8List)
-
openFile(
String filePath) → Future< PdfDocument> - Open PDF document from filesystem path