| com.pspdfkit.document.ImageDocument |
An image document. To create an instance use openDocument(Context, Uri) or
openDocument(Context, DocumentSource) or related static async methods.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract PdfDocument |
getDocument()
Gets the converted Pdf document.
| ||||||||||
| abstract DocumentSource |
getImageDocumentSource()
Returns the image document source which may be a
DataProvider or a file Uri. | ||||||||||
| abstract boolean |
isValidForEditing()
Returns
true if the document is editable (comes from a file URI or from another source that supports writing),
false otherwise. | ||||||||||
| abstract boolean |
saveIfModified(DocumentSaveOptions documentSaveOptions, boolean metadata)
Saves the image document to its original location if it has been changed.
| ||||||||||
| abstract boolean |
saveIfModified()
Saves the image document to its original location if it has been changed.
| ||||||||||
| abstract boolean |
saveIfModified(boolean metadata)
Saves the image document to its original location if it has been changed.
| ||||||||||
| abstract Single<Boolean> |
saveIfModifiedAsync(boolean metadata)
Saves the image document to its original location if it has been changed.
| ||||||||||
| abstract Single<Boolean> |
saveIfModifiedAsync(DocumentSaveOptions documentSaveOptions, boolean metadata)
Saves the image document to its original location if it has been changed.
| ||||||||||
| abstract Single<Boolean> |
saveIfModifiedAsync()
Saves the image document to its original location if it has been changed.
| ||||||||||
Gets the converted Pdf document.
Returns the image document source which may be a DataProvider or a file Uri.
Returns true if the document is editable (comes from a file URI or from another source that supports writing),
false otherwise.
true if the document supports editing, false otherwise.
Saves the image document to its original location if it has been changed. If there were no changes, the image document file will not be modified. Note that this may take a while and should not be called on the main thread.
| documentSaveOptions | Save options for the document. |
|---|---|
| metadata | If true image document will be saved to its original location together with the generated Pdf document
in the metadata, when false Pdf in the metadata will be purged if any, and the saving will take effect persistently. |
true if the file was modified and changes were saved. false if there was nothing to save.
Saves the image document to its original location if it has been changed. If there were no changes, the image document file will not be modified. Note that this may take a while and should not be called on the main thread.
true if the file was modified and changes were saved. false if there was nothing to save.
Saves the image document to its original location if it has been changed. If there were no changes, the image document file will not be modified. Note that this may take a while and should not be called on the main thread.
| metadata | If true image document will be saved to its original location together with the generated Pdf document
in the metadata, when false Pdf in the metadata will be purged if any, and the saving will take effect persistently. |
|---|
true if the file was modified and changes were saved. false if there was nothing to save.
Saves the image document to its original location if it has been changed. If there were no changes, the image document file will not be modified. Note that this may take a while and should not be called on the main thread.
| metadata | If true image document will be saved to its original location together with the generated Pdf document
in the metadata, when false Pdf in the metadata will be purged if any, and the saving will take effect persistently. |
|---|
true if the file was modified and changes were saved. false if there was nothing to save.
Saves the image document to its original location if it has been changed. If there were no changes, the image document file will not be modified. Note that this may take a while and should not be called on the main thread.
| documentSaveOptions | Save options for the document. |
|---|---|
| metadata | If true image document will be saved to its original location together with the generated Pdf document
in the metadata, when false Pdf in the metadata will be purged if any, and the saving will take effect persistently. |
true if the file was modified and changes were saved. false if there was nothing to save.
Saves the image document to its original location if it has been changed. If there were no changes, the image document file will not be modified. Note that this may take a while and should not be called on the main thread.
true if the file was modified and changes were saved. false if there was nothing to save.