ImageDocument

interface ImageDocument

An image document. To create an instance use openDocument or openDocument or related static async methods.

Functions

Link copied to clipboard
Gets the converted Pdf document.
Link copied to clipboard
Returns the image document source which may be a DataProvider or a file Uri.
Link copied to clipboard
abstract fun isValidForEditing(): Boolean
Returns true if the document is editable (comes from a file URI or from another source that supports writing), false otherwise.
Link copied to clipboard
abstract fun saveIfModified(): Boolean
abstract fun saveIfModified(metadata: Boolean): Boolean
abstract fun saveIfModified(@NonNull documentSaveOptions: DocumentSaveOptions, metadata: Boolean): Boolean
Saves the image document to its original location if it has been changed.
Link copied to clipboard
abstract fun saveIfModifiedAsync(): Single<Boolean>
abstract fun saveIfModifiedAsync(metadata: Boolean): Single<Boolean>
abstract fun saveIfModifiedAsync(@NonNull documentSaveOptions: DocumentSaveOptions, metadata: Boolean): Single<Boolean>
Saves the image document to its original location if it has been changed.