Split PDF API
Send one PDF URL and get back several files — cut at the pages you name, or every few pages. Built for bulk invoices, payslips and statements.
- Free plan
- No credit card
Request
curl -X POST https://apdf.io/api/pdf/file/split \
-H "Authorization: Bearer TOKEN" \
-d file="FILE_URL" \
-d pages="1-3,4,5-z"
const data = new FormData();
data.append('file', 'FILE_URL');
data.append('pages', '1-3,4,5-z');
fetch('https://apdf.io/api/pdf/file/split', {
headers: {'Authorization': 'Bearer TOKEN'},
method: 'POST',
body: data
})
.then(response => response.json())
.then(json => console.log(json));
use GuzzleHttp\Client;
$client = new Client();
$response = $client->post(
'https://apdf.io/api/pdf/file/split', [
'headers' => [
'Authorization' => 'Bearer TOKEN'
],
'form_params' => [
'file' => 'FILE_URL',
'pages' => '1-3,4,5-z'
]
]);
$body = $response->getBody();
echo json_encode($body->getContents());
require 'rest-client'
response = RestClient.post(
'https://apdf.io/api/pdf/file/split',
{
'file' => 'FILE_URL',
'pages' => '1-3,4,5-z'
},
{
Authorization: "Bearer TOKEN"
}
)
puts response.body
import requests
response = requests.post(
'https://apdf.io/api/pdf/file/split',
headers = {
'Authorization': 'Bearer TOKEN'
},
data = {
'file': 'FILE_URL',
'pages': '1-3,4,5-z'
}
)
print(response.text)
import (
"fmt"
"github.com/go-resty/resty/v2"
)
func main() {
client := resty.New()
data := map[string]string{
"file": "FILE_URL",
"pages": "1-3,4,5-z"
}
resp, _ := client.R().
SetFormData(data).
SetHeader("Authorization", "Bearer TOKEN").
Post("https://apdf.io/api/pdf/file/split")
fmt.Println(resp.String())
}
import okhttp3.*;
class Pdf {
public static void main(String[] args) throws Exception {
OkHttpClient client = new OkHttpClient();
FormBody formBody = new FormBody.Builder()
.add("file", "FILE_URL")
.add("pages", "1-3,4,5-z")
.build();
Request request = new Request.Builder()
.url("https://apdf.io/api/pdf/file/split")
.addHeader("Authorization", "Bearer TOKEN")
.post(formBody)
.build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
}
}
One PDF in.
Many PDFs out.
Every comma in the pages value starts a new file.
Or set a size and get a new file every N pages.
381 KB
236 KB
557 KB
- 1-3,4,5-z
- Three files: pages 1 to 3, page 4, then page 5 to the end
- n3
- A new file every three pages
- n1
- Every page as its own file
- 1-r2,z
- All but the last page, then the last page alone
- r3-r1
- One file with the last three pages
One file per person.
Batch jobs produce one big PDF for many people. Splitting it gives every recipient only their own pages.
Bulk invoice runs
Your billing system prints a month of invoices into one PDF. Split it so every customer gets only their own pages.
Payslips per employee
Cut the payroll export into one payslip per person with n1 or n2, ready to upload to each employee's account.
Chapters and sections
Break a long manual or report into its chapters, so readers download the part they need instead of the whole book.
Batch scans
A scanner feeds a stack of forms into one file. Split it back into one PDF per form before it enters your system.
Split from anywhere.
Cut up big files right where your batch jobs drop them.
One account and one monthly allowance behind every route.
One authenticated POST from any language. Copy-paste samples in cURL, Node.js, Python and more.
POST /api/pdf/file/split
Pick the action in any Zap and map files from earlier steps. No code and no servers to run.
Split PDF
Add the Apdf node to any workflow, on n8n Cloud or self-hosted, and chain it with your automation.
Split PDF
Let Claude, ChatGPT, Gemini or your own agent run it through the MCP server, on any paid plan.
split-pdf-file
1,000 splits
a month. Free.
Start on the free plan and move up only when your volume does — up to 1,000,000 operations a month on Business.
- One call is one operation, however many pages.
- Only calls that do the work are counted.
- Hard limits, so no surprise overage charges.
Splitting PDFs, answered
Split PDF tutorials
Split Bulk PDF Statements by Asking Claude
The accounting export is one PDF with every client's statement stacked inside. Describe the structure — 'three pages per client' — and the agent translates it into a page-range expression, splits the batch into per-client files, and reads them back to verify nothing leaked between clients.
Extract Invoice Pages from Bank Statements with PHP
Split combined PDF documents and extract specific page ranges using PHP and the Apdf Split API. Perfect for separating invoices from bank statements, extracting sections from vendor documents, or isolating specific pages.
Splitting Bulk PDF Files: How to Separate Invoices & Payslips
The tutorial explains how to separate bulk PDF files into individual documents using the Apdf Split API with JavaScript or Go. By utilizing the pages parameter (e.g., n1 for single pages), developers can automatically "burst" large batches, such as invoices or payslips, into separate, downloadable files.
Your code made the PDF.
Then it went dark.
Opened, read, signed or ignored — you never see any of it. Send the PDFs you generate as personal links, and every open, page read, comment and signature comes back to your software as a webhook. Need it signed? Same link. Same account, same API key, one more call.
API · Webhook · MCP