PDFDocument class
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
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, CacheManager? cacheManager, dynamic clearPreviewCache = true})
→ Future<PDFDocument>
-
Load a PDF File from a given URL.
File is saved in cache
-
fromURLWithDownloadProgress(String url, 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