PdfDocument class

PDF page image renderer

Properties

hashCode int
The hash code for this object. [...]
read-only, override
id String
Document unique id. Generated when opening document.
final
isClosed bool
Is the document closed
read / write
pagesCount int
All pages count in document. Starts from 1.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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 non-existent method or property is accessed. [...]
inherited
toString() String
Returns 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