menu
flutter_neat_pdf_viewer package
documentation
flutter_neat_pdf_viewer.dart
PDFDocument class
PDFDocument class
dark_mode
light_mode
PDFDocument
class
Constructors
PDFDocument
()
Properties
count
↔
int
?
getter/setter pair
hashCode
→
int
The hash code for this object.
no setter
inherited
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
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
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 file
Map<String,String headers
headers to pass for the
url
CacheManager cacheManager
to provide configuration for cache management
flutter_neat_pdf_viewer package
documentation
flutter_neat_pdf_viewer
PDFDocument class
flutter_neat_pdf_viewer library