PDFDocument class
Constructors
Properties
- count ↔ int
-
getter/setter pair
- filePath → String?
-
no setter
- filePathPublic ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- 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.
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(
dynamic 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