PDFDocument class

Constructors

PDFDocument()

Properties

count int?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
images List<Image?>?
getter/setter pair
pages List<PDFPage?>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearFileCache() → void
clearImageCache() → void
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?>
getImage({int page = 1}) Future<Image?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preloadImages() Future<void>
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

fromAsset(String asset) Future<PDFDocument>
Load a PDF File from assets folder
fromFile(File f) Future<PDFDocument>
Load a PDF File from a given File
fromURL(String url, {Map<String, String>? headers}) Future<PDFDocument>
Load a PDF File from a given URL. File is saved in cache