Merge PDF API

Merge multiple PDF files into single document

PDF

Merge PDF API allows developers to combine multiple PDF files into a single document, reducing the time and effort required to manage large numbers of individual PDF files. Some of the key features of Merge PDF API include retaining page numbering, eliminating duplicate fonts for improved performance, and even generating a table of contents for the merged documents. In addition, merge PDF API is a RESTful API, which means it can be easily integrated into any application or website. All that's required is a simple API call, and the PDF files will be merged into a single document.

Copy parameter's URL Secret Secret
Type: String

Authentication secret must be provided as a query parameter. If omitted, token must be provided.

Show all
Copy parameter's URL Token Token
Type: String

Authentication token must be provided as a query parameter. If omitted, secret must be provided.

Show all
Copy parameter's URL Files Files Required
Type: File

Files to be converted. Value can be URL or file content. If used in query or multipart content parameter must be suffixed with index e.g. Files[0], Files[1], Files[2]...

Show all
Copy parameter's URL StoreFile Store file
Type: Bool

Store converted file on our secure server and provides download URL.

Default: False Show all
Copy parameter's URL FileName File name
Type: String

Converted output file name without extension. The extension will be added automatically.

Show all
Copy parameter's URL Timeout Timeout
Type: Integer

Conversion timeout in seconds.

Default: 900 Range: 10 .. 1200 Show all
Copy parameter's URL Password Open Password
Type: String

Sets the password to open protected documents.

Show all
Copy parameter's URL RetainNumbering Retain PDF numbering
Type: Bool

Keeps the original PDF labels numbering rather than re-numbering merged PDF from the 1 page.

Default: False Show all
Copy parameter's URL RemoveDuplicateFonts Remove duplicate fonts
Type: Bool

Do not include the same fonts from source PDFs while merging.

Default: False Show all
Copy parameter's URL BookmarksToc Add bookmarks TOC
Type: Collection

Adds a top-level bookmark for each file, using the filename or PDF title from metadata.

Default: Disabled Values: disabled filename title Show all
Copy parameter's URL PageSize Page size
Type: Collection

The property scales each page to fit a given page size.

Default: default Values: default a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 usletter uslegalportrait Show all
Copy parameter's URL PageOrientation Page orientation
Type: Collection

Set page orientation, works only along with PageSize property.

Default: default Values: default portrait landscape Show all
Copy parameter's URL OpenPage Open to page
Type: Integer

Set the page number at which the PDF document should open.

Default: 1 Range: 1 .. 3000 Show all

Code snippet

// Code snippet is using the ConvertAPI JavaScript Client: https://github.com/ConvertAPI/convertapi-js

// Code snippet is using the ConvertAPI Node.js Client: https://github.com/ConvertAPI/convertapi-nodejs

// Code snippet is using the ConvertAPI PHP Client: https://github.com/ConvertAPI/convertapi-php

// Code snippet is using the ConvertAPI Java Client: https://github.com/ConvertAPI/convertapi-java

// Code snippet is using the ConvertAPI C# Client: https://github.com/ConvertAPI/convertapi-dotnet

# Code snippet is using the ConvertAPI Ruby Client: https://github.com/ConvertAPI/convertapi-ruby

# Code snippet is using the ConvertAPI Python Client: https://github.com/ConvertAPI/convertapi-python

// Code snippet is using the ConvertAPI Go Client: https://github.com/ConvertAPI/convertapi-go

REM Code snippet is using the command line utility program: https://github.com/ConvertAPI/convertapi-cli

<!-- For conversions with the multiple file result please refer to this example: https://repl.it/@ConvertAPI/HTML-Form-with-multiple-file-result -->

Resources

In addition to the interactive code snippet above, we wrote some useful articles about the PDF to MERGE conversion. Read more about the converter, integration and advanced techniques in the articles below: