Copy a page to a new document

The following diagram shows the sequence of events initiated by the user request to copy a page to a new document. In the BeforeCopyPageToNewDocument event, the user interaction can be canceled. To verify if the opening module is the current module please use the Project.ScriptExecutionMode property.

If you edit a batch during processing by copying a document or page, this does not copy any existing custom storage strings. Instead, you can use the AfterCopyPageToNewDocument event to set them via script.


An image showing the copy a page to new document flow