PDFDocument class
Constructors
Properties
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 f, {bool clearPreviewCache = true}) → Future< PDFDocument> - Load a PDF File from a given File
-
fromURL(
String url, {Map< String, String> ? headers, dynamic clearPreviewCache = true}) → Future<PDFDocument> - Load a PDF File from a given URL. File is saved in cache