Merge PDFs is a REST API tool that joins together any number of full PDF files or specified pages from separate documents into a consolidated PDF.
Start right from your browser - upload files, choose parameters, generate code, and send API Calls directly from API Lab!
to receive your free API Key.curl -X POST "https://api.pdfrest.com/merged-pdf" \ -H "Accept: application/json" \ -H "Content-Type: multipart/form-data" \ -H "Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
The response for your API Call will display here.
You have document processing problems, we have Solutions. Explore the many ways pdfRest can align your documents with your business objectives.
pdfRest offers the best solution for merging multiple PDF documents together, because it produces optimized output, supports flexible page ranges, and can be combined with conversion to merge files of other formats.
pdfRest’s Merge PDFs allows for much more than full document merging. Let’s say you only need page 1 from Document A, pages 3-5 from Document B, and pages 15, 18, and 72 from Document C… no problem! Choose exactly which pages to include from each input file and specify the exact order you need them in the output file.
Api-Key
field with your unique API
Key
file
with the local path to your
input
Need more help?
Start with a Tutorial for step-by-step guidance
The pages[]
parameter is used to identify pages and/or page ranges that you would like to take from each input document and merge into a single PDF. This is a versatile parameter that allows you to reorder and duplicate pages based on the page numbers and ranges that you specify. Use this parameter once for each file that you would like to merge.
If a page number is included more than once (e.g., “1,2,3,3,4,5”), then the page will be duplicated in the output file. Pages may also be reordered (e.g., “1,5,3,2,4”), and page ranges may be reversed by listing the higher page number first (e.g., “2,4,9-5,12”).
To include all pages from a document, use the range “1-last”. The “last” keyword can also be applied generally to page ranges (e.g., “1-4,6,7-last”).
The pages[]
parameter also accepts the keywords “even” and “odd” to select only those pages to merge into your new PDF.
Create your FREE API Key to start processing PDFs in seconds, only possible with pdfRest.