Concatenate PDF Files

Contents
[ ]

To concatenate two PDF files:

  1. Create two Document objects, one for each input file. The document you want to add a file to will be called the target document. The file that will be added is called the source document.
  2. Call the Pages collection’s Add method on the target Document object.
  3. Pass the Pages collection of the source Document object to the target document’s Pages collection’s add method.
  4. Save the target PDF file with the save method.

The following code snippet shows how to concatenate PDF files.