Concatenate or split existing PDF documents with PHP


Concatenate or split existing PDF documents with PHP

Merge PDF files with PHP

The SetaPDF-Merger component allows a PHP developer to assemble existing PDF document into a new document. The same process can be used to extract single pages or page ranges. After all the process is done at the lowest level so that all features and content, like bookmark outlines, or form fields, links or any other annotation type, of all documents will be kept.

The SetaPDF-Merger component also allows a PHP developer to create PDF Portfolios

The PHP component comes with all features of the SetaPDF-Core component, including support for encrypted PDF files if rights are granted or an owner password is known.

The main features are:

  • Merge PDF documents / concatenate PDF pages / join PDF page ranges with pure PHP
  • Handle bookmark outlines
  • Split or extract pages of PDF documents
  • Keep and/or add named destinations
  • Keep internal and external links
  • Keep any dynamic content like form fields, videos or any other dynamic annotation
  • Concatenate PDF forms with same named fields
  • Create and edit PDF Portfolios 

In Action [See all demos]

Optimize Resources

This demo analyses the resulting page content streams and removes unused resources from their resource dictionaries.

Create a PDF Portfolio

Create a PDF Portfolio with the SetaPDF-Merger component in PHP.

More demos are available here.


Questions about SetaPDF-Merger?

If you are searching for a feature or have any question regarding this or any other product, contact us at

Want to stay up to date?

Then subscribe to our newsletter:

E-mail seems to be invalid.
Please confirm that you have read our data privacy statement.

Do you like this product?

Then it would be awesome, if you‘d recommend it to your friends!