PdfDocumentRefUri class

A PdfDocumentRef that loads the document from network.

Inheritance

Constructors

PdfDocumentRefUri(Uri uri, {PdfPasswordProvider? passwordProvider, bool firstAttemptByEmptyPassword = true, bool autoDispose = true, bool preferRangeAccess = false, Map<String, String>? headers, bool withCredentials = false, Duration? timeout, bool useProgressiveLoading = true, PdfDocumentRefKey? key})

Properties

autoDispose → bool
Whether to dispose the document on reference dispose or not.
finalinherited
firstAttemptByEmptyPassword → bool
firstAttemptByEmptyPassword is used to determine whether the first attempt to open the PDF is by empty password or not. For more info, see PdfPasswordProvider.
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>?
Additional HTTP headers especially for authentication/authorization.
final
key → PdfDocumentRefKey
A name that identifies the source of the document.
finalinherited
passwordProvider → PdfPasswordProvider?
passwordProvider is used to provide password for encrypted PDF. See PdfPasswordProvider for more info.
final
preferRangeAccess → bool
Whether to prefer range access or not.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourceName → String
The name that identifies the source of the document.
no setterinherited
timeout → Duration?
Timeout duration for loading the document. (Only supported on non-Web platforms).
final
uri → Uri
The URI to load the document.
final
useProgressiveLoading → bool
Whether to use progressive loading or not.
final
withCredentials → bool
Whether to include credentials in the request (Only supported on Web).
final

Methods

loadDocument(PdfDocumentLoaderProgressCallback progressCallback) → Future<PdfDocument>
Use resolveListenable/PdfDocumentListenable.document instead to load the shared PdfDocument.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveListenable() → PdfDocumentListenable
Resolve the PdfDocumentListenable for this reference.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited