Split and Extract Pages from Any PDF
Extract specific pages or page ranges from any PDF document via REST API. Use flexible page selectors like "1,3,5-7" to get exactly the pages you need. Perfect for document processing pipelines.
# Extract specific pages from a PDF
curl -X POST \
https://api.convertfilefast.com/v2/pdf/split \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@document.pdf" \
-F "pages=1,3,5-7" \
--output extracted.pdf
# HTTP 200 OK — Content-Type: application/pdfimport requests
response = requests.post(
"https://api.convertfilefast.com/v2/pdf/split",
headers={"Authorization": "Bearer YOUR_API_KEY"},
files={"file": open("document.pdf", "rb")},
data={"pages": "1,3,5-7"}
)
with open("extracted.pdf", "wb") as f:
f.write(response.content)const formData = new FormData();
formData.append("file", fs.createReadStream("document.pdf"));
formData.append("pages", "1,3,5-7");
const response = await fetch(
"https://api.convertfilefast.com/v2/pdf/split",
{
method: "POST",
headers: { "Authorization": "Bearer YOUR_API_KEY" },
body: formData,
}
);
fs.writeFileSync("extracted.pdf", Buffer.from(await response.arrayBuffer()));// n8n HTTP Request Node
{
"method": "POST",
"url": "https://api.convertfilefast.com/v2/pdf/split",
"contentType": "multipart-form-data",
"bodyParameters": {
"parameters": [
{ "name": "file", "parameterType": "formBinaryData", "inputDataFieldName": "data" },
{ "name": "pages", "value": "1,3,5-7" }
]
},
"options": { "response": { "responseFormat": "file" } }
}Advantages
Why use our API?
Complete and reliable solution for integration in any tech stack.
Flexible Page Selection
Use comma-separated pages (1,3,5) and ranges (2-8) in any combination. Example: "1,3,5-7".
Single Request
Extract all desired pages in one API call. Get the result as a new, clean PDF document.
Preserve Formatting
Extracted pages retain all original formatting, fonts, images, and layout from the source PDF.
High Performance
Extract pages from large documents in seconds. No processing delays regardless of source file size.
Pipeline Integration
Chain with other PDF operations in n8n workflows or custom scripts for full document automation.
Secure Processing
Source PDFs are processed in memory and discarded immediately. No files stored on our servers.
How it works
4 steps to run this conversion
- 1
Create an API key
Sign up at convertfilefast.com/signup and copy your cff_ API key from the dashboard. The free tier includes 10 conversions per month.
- 2
POST the PDF to the endpoint
Send a multipart/form-data POST to https://api.convertfilefast.com/v2/pdf/split with header X-API-Key: cff_your_key (Authorization: Bearer also works), the PDF as a file field or a public url field, and a pages field such as 1,3,5-7.
- 3
Receive the PDF
The response body is the resulting PDF, streamed back with a Content-Disposition filename. Save it or pass it straight to the next step of your pipeline — nothing is stored on our side.
- 4
Or invoke it from an AI agent
Add the MCP server to Claude, Cursor or any MCP-compatible client using https://mcp.convertfilefast.com/mcp, then call split_pdf({ source_url: '...', pages: '1,3,5-7' }) as a single tool call — no HTTP client, no file handling.
Or call this from Claude, Cursor, or any MCP client
Convert File Fast ships a native Model Context Protocol server. Give this conversion to an AI agent as a single tool call — no HTTP client, no binary handling, per-user API keys.
npx -y convertfilefast-mcpsplit_pdf({ source_url: "https://example.com/doc.pdf", pages: "1,3,5-7" })Compared with
Convert File Fast vs alternatives
| Product | Native MCP | Free tier | Price |
|---|---|---|---|
| Convert File Fast | Yes | 10/month | $0.004/conv from $4 |
| Smallpdf | No | 2/day (unregistered) | $9/mo Pro |
| iLovePDF | No | Rate-limited | $7/mo Premium |
| Adobe Acrobat Online | No | Limited trials | $19.99/mo Acrobat Standard |
| CloudConvert | No | 25 conv-min | From $0.01/min |
Competitor pricing checked on 2026-07-16.
FAQ
Frequently Asked Questions
Can I specify a page range to split a PDF?
Yes. Use the `pages` parameter to specify individual pages or ranges — for example `1,3,5-7` extracts pages 1, 3, 5, 6, and 7 into a single output PDF. You can combine comma-separated pages with dash-delimited ranges in any order.
What is the maximum file size supported?
Limits depend on your plan and are enforced per API key — the API reports the ceiling it currently accepts at https://api.convertfilefast.com/v1/info, and your own plan limit is shown in your dashboard. If a file exceeds it, compress it first with the Compress PDF endpoint.
Does the API return a ZIP file when splitting into multiple parts?
No. Each API call returns a single PDF containing the pages you selected. If you need to extract multiple separate sections, make one API call per section. The response Content-Type is always `application/pdf`.
How many splits can I perform per API call?
Each API call produces one output PDF. There is no limit on how many pages you select per call. To split a document into N independent parts, send N requests — each request counts as one conversion against your monthly quota.
Related Tools
Start Splitting PDFs via API
Get your API key and extract pages from PDF documents in seconds. Free plan includes 10 conversions per month.
No credit card. 10 free conversions on Free plan.