Splits a single PDF into multiple smaller PDFs. Supports splitting by page ranges, one page per file, or fixed number of chunks.
ModeParamBehaviourBy pagespages: "1-3,5,8-10"Each comma group = one output PDFEach pagemode: "each"One PDF per pageFixed chunkschunks: 3Split into N roughly equal partsDefault(none)Same as mode: "each"
Provide one of:
url — public URL to a PDFfile — base64-encoded PDFfile fieldSend your API key in the CLIENT-API-KEY header.
Get your free API key at https://pdfapihub.com. Full API documentation is available at https://pdfapihub.com/docs.
bash
curl -X POST https://pdfapihub.com/api/v1/pdf/split \
-H "CLIENT-API-KEY: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://pdfapihub.com/sample-pdfapi-intro.pdf",
"pages": "1-5,8,10-15",
"output": "url"
}'