saveIfModifiedAsync

abstract suspend fun saveIfModifiedAsync(): Boolean

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.

Return

true if the file was modified and changes were saved, false if there was nothing to save.


abstract suspend fun saveIfModifiedAsync(metadata: Boolean): Boolean

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.

Return

true if the file was modified and changes were saved, false if there was nothing to save.

Parameters

metadata

If true the image document will be saved to its original location together with the generated Pdf document in the metadata; if false the Pdf in the metadata will be purged if any, and the saving will take effect persistently.


abstract suspend fun saveIfModifiedAsync(documentSaveOptions: DocumentSaveOptions, metadata: Boolean): Boolean

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.

Return

true if the file was modified and changes were saved, false if there was nothing to save.

Parameters

documentSaveOptions

Save options for the document.

metadata

If true the image document will be saved to its original location together with the generated Pdf document in the metadata; if false the Pdf in the metadata will be purged if any, and the saving will take effect persistently.