PDFDocument class

Constructors

PDFDocument()

Properties

count int
getter/setter pair
filePath String?
expose file path for pdf sharing capabilities
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

get({int page = 1, dynamic onZoomChanged(double)?, int? zoomSteps, double? minScale, double? maxScale, double? panLimit}) Future<PDFPage>
Load specific page
getAll({dynamic onZoomChanged(double)?}) Stream<PDFPage?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preloadPages({dynamic onZoomChanged(double)?, int? zoomSteps, double? minScale, double? maxScale, double? panLimit}) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

clearPreviewCache() Future<void>
Clears an on-disk cache of previously rendered PDF previews.
fromAsset(String asset, {dynamic clearPreviewCache = true}) Future<PDFDocument>
Load a PDF File from assets folder
fromFile(File file, {bool clearPreviewCache = true}) Future<PDFDocument>
Load a PDF File from a given File File file, file to be loaded
fromURL(String url, {Map<String, String>? headers, CacheManager? cacheManager, dynamic clearPreviewCache = true}) Future<PDFDocument>
Load a PDF File from a given URL. File is saved in cache
fromURLWithDownloadProgress(String url, {Map<String, String>? headers, CacheManager? cacheManager, bool clearPreviewCache = true, required void downloadProgress(DownloadProgress downloadProgress), required void onDownloadComplete(PDFDocument document)}) → void
Load a PDF File from a given URL, notifies download progress until completed File is saved in cache