Instant Pdf Document
PDF document managed by Instant. To create an instance use InstantClient.openDocument or InstantClient.openDocumentAsync.
Types
Companion object containing constants for InstantPdfDocument configuration.
Properties
Delay in milliseconds before kicking off automatic sync after local changes are made to the document.
Returns the current state of this Instant document.
Returns instant client managing this document.
Returns instant document handle for this document.
Whether to listen to server changes for this document.
Functions
Adds listener for instant document events. If the listener has already been added previously, this method will be a no-op. Adding null is not allowed, and will result in an exception.
Returns AnnotationProvider object which handles annotations contained in this document.
Notify Instant that connection has changed. Calling this method is optional. Annotation sync behaves by default as if being connected all the time. Failed requests are retried with increasing backoff when sync fails.
Updates the token used to authenticate access to the document with a new JWT. This allows annotations to be synced again after the initial token used to download the document has expired.
Updates the token used to authenticate access to the document with a new JWT, asynchronously. This allows annotations to be synced again after the initial JWT used to download the document has expired.
Removes listener, previously registered via addInstantDocumentListener. Upon calling this method the listener will no longer be notified of any changes. If the listener has not been added, this method will be a no-op. Adding null is not allowed, and will result in an exception.
Removes local storage for this document. Document will be invalid after returning from this method. Use this to clean-up locally cached data for documents that won't be used anymore or that has been corrupted due to internal error.
Starts annotation sync and suspends until its completion.
Syncs annotations with Instant Server (Nutrient Document Engine) asynchronously.