Skip to main content
These sample scripts show how to handle document merge events in ABBYY FlexiCapture. Each example is available in both VBScript and JScript.

Turn the Pages moved event into a document merge event

This handler runs on the Pages moved event and transforms it into a document merge event. If all pages of a document are moved, that document is fully embedded into the target document. The Events.OnDocumentsMerge procedure handles the document merge event.

VBScript

JScript

Merge registration parameters when documents merge

This handler merges document registration parameters on the document merge event. When documents merge into a target document, only the parameters that are missing from the target are added from the new documents. Store this code in a shared module and call the OnDocumentsMerge procedure when documents merge. For more information, see Turn the Pages moved event into a document merge event.

VBScript

JScript