InstantDocumentDescriptor

Descriptor/handle for InstantPdfDocument that provides methods for downloading/opening instant documents.

Each descriptor describes a single Instant document layer defined by the Document id and layer name. Both of these are encoded in the JWT used for authentication provided via openDocumentAsync or downloadDocumentAsync.

Properties

Link copied to clipboard
val internal: InternalInstantDocumentDescriptor

Functions

Link copied to clipboard
Downloads document from Instant Server (PSPDFKit Document Engine) asynchronously.
Link copied to clipboard
Returns the creator name set in the JWT — if any.
Link copied to clipboard
Document Id of the managed document.
Link copied to clipboard
open fun getJwt(): String
JWT used to authenticate access to the document.
Link copied to clipboard
Name of the managed document layer.
Link copied to clipboard
Id of the user the layer managed by the handle belongs to.
Link copied to clipboard
open fun isDownloaded(): Boolean
Check whether document is already downloaded.
Link copied to clipboard
Downloads and opens document from Instant Server (PSPDFKit Document Engine) (synchronously).
Link copied to clipboard
Downloads and opens document from Instant Server (PSPDFKit Document Engine) asynchronously.
Link copied to clipboard
Removes local storage for this layer.