MergePDF

MergePDF merges the pages of two PDF documents with each other. The PDF documents made with the DocToPDF command can be merged with this command to create overlays and watermarks.

Note

The command DocToPDF may only be used if you accept the terms of the ELECTRONIC END USER LICENSE AGREEMENT FOR AMYUNI DOCUMENT CONVERTER PRODUCTS AS INTEGRATED IN AIA SOFTWARE'S ITP/SERVER PRODUCT. These license terms will be presented to you during installation of ITP/Server and will be installed in the same folder as this manual (Amyuni License Terms.txt). Note, that if you decline these terms, the installer will not install the Amyuni driver software.

Syntax
MergePDF 
Src(<text>)
Watermark(<text>)
Dest(<text>)
Repeat(<True or False>)
Overlay(<True or False>)
ProducePDFA(<True or False>);
Parameters

Src: Required.
The full path of the base PDF document.

Watermark: Required.
The full path of the watermark PDF document. The pages from this document are merged into the Src document either as overlays or as watermarks.

Dest: Required.
The full path of the resulting PDF document that will contain the merged pages.

Repeat: Optional (Default setting: False).
This parameter determines how the MergePDF command will perform the merge if the Watermark PDF document has less pages than the Src PDF document.

If the parameter Repeat is set to False, all pages of the Watermark PDF document are merged with into corresponding pages of the Src PDF document and the remaining pages of the Src PDF document are copied unmodified. Sample use: Watermark the first page of a document.

If the parameter Repeat is set to True, all pages of the Watermark PDF document are merged into the corresponding pages of the Src PDF document. When the end of the Watermark PDF document is reached, the next page will again be merged with the first page of the Watermark PDF document. Sample use: Watermarking all pages of a document with the same watermark.

Overlay: Optional (Default setting: False).
This parameter determines how the Src and Watermark PDF documents are merged.

If the parameter Overlay is set to False, the pages of the Watermark PDF document are inserted as a watermark, below the text of the Src document.
If the parameter Overlay is set to True, the pages of the Watermark PDF document are inserted as an overlay, covering the text of the Src document.

ProducePDFA: Optional (Default Setting: False)
This parameter determines whether or not the resulting document will be PDF/A-1b compliant.

Note

This command can only produce PDF/A-1b compliant documents if both the Src and Watermark documents are PDF/A-1b compliant and if the parameter ProducePDFA is set to True.