Skip to main content

Merging multiple PDFs into one

This endpoint will allow you to merge multiple PDFs into one using the PDF.API.

It is important to note that documents will be merged in the order they are sent via the payload.

You can view the full Swagger documentation here.

Request

curl --location 'https://pdf-api.doclabs.cloud/api/v1/merge?storageName=MyBucketName' \
--header 'Content-Type: application/json' \
--header 'x-api-key: ••••••' \
--data '{
"documents": [
"MyFirstDocument.pdf",
"MySecondDocument.pdf",
"MyThirdDocument.pdf"
]
}'

Response

{
"bucketName": "MyBucketName",
"contentPathName": "MergedDocuments.pdf"
}