on Document Save
Called before document will be saved. 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.