on Document Save
open fun onDocumentSave(@NonNull document: PdfDocument, @NonNull saveOptions: DocumentSaveOptions): Boolean
Called before document will be saved. This callback allows cancellation of the save process.
Return
true
if the document should be saved, false
if saving should be cancelled.
Parameters
document
Instance of document to be saved.
save Options
Save options to be applied to the document. You may change parameters on this object to control how document is saved.