Guides
Welcome
First steps
Getting started
Processing a PDF
Common functions
Topics
Encrypt files
Error handling
Tool guides
Merge PDF Guide
Split PDF Guide
Compress PDF Guide
Convert Office to PDF Guide
Convert PDF to JPG Guide
Convert Images to PDF Guide
PDF to PDF/A Guide
HTML to PDF Guide
Validate PDF/A Guide
Rotate PDF Guide
Unlock PDF Guide
Protect PDF Guide
Watermark PDF Guide
Add Page Numbers Guide
Repair PDF Guide
Extract Text Guide
Edit PDF Guide
Merge PDF Guide
Develop your own solution to combine multiple PDF files by integrating with iLovePDF’s REST API.
Remember that in order to use our Tool Guides, you need to have previous knowledge about the basics to
processing a PDF with our REST API. We strongly recommend that you read the Processing a PDF guide
before starting this one.
Basic merge
Merge is one of the simplest iLovePDF API tools to use and can be done by simply uploading two or more files, as shown in this example code:
Examples using a library
In this example, file1_name.pdf and file2_name.pdf will be merged into a single PDF with a default filename.
Merge is that simple. Remember that you can explore more functions like setting the output filename in the Common functions guide.