How to merge PDF files

The main menus of PDF3D ReportGen can merge 3D content with template PDFs. However, sometimes it is helpful to directly merge PDFs.

By using the PDF3D Merge Utility you can merge multiple PDF files into a single one. This can be done with the PDF3DMerge (or PDF3DMerge.exe in Windows) command by either direct command line parameters or a single XML file as a wrapper for this parameters.

XML

To merge multiple PDF files using a definition XML file: PDF3DMerge your_file.xml. The following lines describe the tags for a sample XML file that can be used for merging multiple PDF files.

Example XML file:

<PDF3DMerge>
<globalFlag name="createBookmarks" value="true" />
<inputFile path="first.pdf" />
<inputFile path="second.pdf" />
<outputFile path="PDF3DMerged_output.pdf" />
<keyWords>Add;Some;Of;These</keyWords>
<text>A Foother Is Created</text>
</PDF3DMerge>

Description of tags:

Both the input and output files can use absolute or relative paths. Note that if the output file already exists, it will be overwritten.

Command Line Parameters

To merge multiple PDF files via command line parameters in an equivalent way as the XML specified above:
PDF3DMerge first.pdf second.pdf -b -k "Add;Some;Of;These" -o PDF3DMerged_output.pdf.

Usage: PDF3DMerge <inputfile1.pdf> <inputfile2.pdf> [inputfile3.pdf..n] [options] -o <outputfile.pdf>

Options:

In the same way as the XML file, both the input and output files can use absolute or relative paths. Note that if the output file already exists, it will be overwritten.