Merge PDF using PHP
Merge multiple PDF files into single document
Merge PDF features
The Merge PDF PHP SDK allows users to combine multiple PDF files into a single PDF document.
Some key features of Merge PDF PHP SDK include retaining page numbering, eliminating duplicate fonts for improved performance, and generating a table of contents for the merged documents. Additionally, it offers properties like page size to set a consistent page size across the merged document and page orientation to choose between portrait and landscape orientations, ensuring that the final output meets specific formatting requirements.
This PHP SDK is useful for organizing content and reducing the number of separate files by merging them into one.
File conversion library for PHP
ConvertAPI provides a PHP library that allows you to perform a Merge PDF conversion with just a few lines of code. Merge PDF documents using PHP programming language with no effort at all!
composer require convertapi/convertapi-php
Or install it manually using ConvertApi autoloader:
require_once('/path/to/convertapi-php/lib/ConvertApi/autoload.php');
How To Merge PDF using PHP?
You can Merge PDF in a few simple steps:
- Obtain your secret key by signing up for a free account.
- Install the ConvertAPI library for PHP
- Set up the Merge PDF conversion using our live demo tool
- Copy-paste the auto-generated code snippet into your project!
Merge PDF - complete code snippet for PHP
Once you have your authentication in place, simply copy-paste this pdf to merge conversion code snippet into your PHP project:
Try the conversion online - no coding required!
You can try out advanced conversion parameters and test the conversion result online using our interactive demo tool. This tool will produce the same conversion output as if you were using the library from your solution, and it will auto-generate the code snippet for you!
Try for FREE!Conversion parameters
Do not include the same fonts from source PDFs while merging.
Adds a top-level bookmark for each file, using the filename or PDF title from metadata.
Values: disabled filename title
The property scales each page to fit a given page size.
Values: default a2 a3 a4 a5 a6 letter legal
Set page orientation.
Values: default portrait landscape
Set the page number at which the PDF document should open.