Merge and Split Documents using cURL

Document merge or split using simple cURL commands for REST APIs. Reliably rotate, tilt, change orientation, reorder document pages of any file format.

Start Free Trial
GroupDocs.Merger for cURL

GroupDocs.Merger Cloud for cURL


GroupDocs.Merger Cloud API provides a solution to split and merge documents of all common business formats. Using cURL, you can perform many others operation by just sending requests to the REST API and receive responses to manipulate documents in the cloud. Supported file types include; PDF, Microsoft Word documents, Excel spreadsheets, PowerPoint presentations, OpenDocument formats, plain text and others.

Previous Next

Document Merger REST API Features



Combine multiple pages, slides or spreadsheets into a single document


Swap position of any two pages, slides or sheets within a document


Rotate pages by setting rotation angles like 90, 180 or 270 degrees


Split any document into smaller files


Remove any single or collection of specific pages


Change page orientation


Rearrange pages, slides or diagrams


Set, reset & remove password


Fetch list of supported file formats

Merge multiple documents

Using GroupDocs.Merger Cloud API, you can combine two or more documents into one document, or split any document into multiple smaller documents. Following simple cURL command shows how to merge two PDF files.

Merge PDF documents - cURL

curl -X POST "" \
-H "accept: application/json" \
-H "authorization: Bearer TOKEN-HERE" \
-H "Content-Type: application/json" \
-d "{ \"JoinItems\": [ { \"FileInfo\": { \"FilePath\": \"/foldername/doc1.pdf\", \"StorageName\": \"my Storage\" } }, { \"FileInfo\": { \"FilePath\": \"/foldername/doc2.pdf\", \"StorageName\": \"my Storage\" } } ], \"OutputPath\": \"/output/joined-document.pdf\"}"

Support and Learning Resources