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.
override
Static Methods
-
fromAsset(
String asset) → Future< PDFDocument> -
Load a PDF File from assets folder
String asset
path of the asset to be loaded -
fromFile(
File file) → 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}) → Future<PDFDocument> -
Load a PDF File from a given URL.
File is saved in cache
String url
url of the pdf fileMap<String,String headers
headers to pass for theurl
CacheManager cacheManager
to provide configuration for cache management