Members
destroyed :boolean
Whether the loading task is destroyed or not.
Type:
- boolean
docId :string
Unique identifier for the document loading task.
Type:
- string
onPassword :function
Callback to request a password if a wrong or no password was provided.
The callback receives two parameters: a function that should be called
with the new password, and a reason (see PasswordResponses).
Type:
- function
onProgress :function
Callback to be able to monitor the loading progress of the PDF file
(necessary to implement e.g. a loading bar).
The callback receives an OnProgressParameters argument.
Type:
- function
promise :Promise:.<PDFDocumentProxy:>
Promise for document loading task completion.
Type:
Methods
(async) destroy() → {Promise:.<void:>}
Abort all network requests and destroy the worker.
Returns:
A promise that is resolved when destruction is
completed.