Merge documents

The following diagram shows the sequence of events initiated by the user request to merge two or more documents into one document. Each merge of two documents is handled as one event sequence. This event sequence is then executed for each additional document that is merged. In the BeforeMergeDocument event, the user interaction can be canceled. To verify if the opening module is the current module please use the Project.ScriptExecutionMode property.

Note If you edit a batch during processing by copying a document or page this does not copy any existing custom storage strings. You can use the AfterCopyDocument or AfterCopyPage events to set them via script.

A visual representation of the Merge Document event sequence.