Split a PDF into chapters by its bookmarks
Cuts a PDF into one file per top-level bookmark, named after the chapter.
Updated November 13, 2026
What this example returns
The dataset’s “Results” view shows 13 columns: Type, File, Download, Operations, Pages, Page range, Page, Size (bytes), Smaller by %, Source file, Notes, Status, and Error. See every output field.
What each setting does
The input this example runs PDF Toolkit – Merge, Split, Compress, Convert & Edit PDFs with. “Try this input” opens it in the console, where you can run it as-is or change any field first.
- PDF and image links
fileUrls https://arxiv.org/pdf/1706.03762
Links to the PDF files to work on, one per line (images such as JPEG, PNG, WebP, GIF, TIFF, BMP and HEIC become PDF pages). Up to 500 MB per file. Google Drive, Google Docs, Dropbox, GitHub and arXiv share links are turned into download links automatically. You can also upload files below, or take them from a…
- What to do
operations compress, split
Pick one or more operations. They always run in this order, whatever order you pick them in: images to PDF, merge, extract / remove / reorder pages, rotate, watermark, page numbers, metadata, compress, password; then the readers (info, text, embedded images, page images) look at the finished PDF, and split cuts it…
- Split mode
splitMode By top-level bookmarks (chapters)
Each part becomes one PDF with its own download link.
Default: Every page its own PDF → this example uses By top-level bookmarks (chapters)
- Compression level
compressionLevel Lossless (no image quality loss)
Lossless rewrites the file compactly. Balanced and Strong also scale down and recompress large images. A file that cannot get smaller is kept as it was.
Default: Balanced (images to 150 DPI, good quality) → this example uses Lossless (no image quality loss)
{
"fileUrls": [
"https://arxiv.org/pdf/1706.03762"
],
"operations": [
"compress",
"split"
],
"compressionLevel": "lossless",
"splitMode": "bookmarks"
}What it costs
You pay for the events the actor reports, such as each result or page it produces. Platform usage is included in the event prices: compute, proxies, browser and storage cost nothing extra.
- File loaded$0.00425Each PDF or image file that was downloaded and opened. Files that cannot be downloaded or opened are free.
- Embedded image saved$0.0017Each embedded image saved from a PDF.
- Info and metadata read$0.00425Each file whose info and metadata were read.
- Page converted to an image$0.00425Each PDF page saved as a PNG, JPEG, WebP or TIFF image.
- Page processed$0.0017Each page a page step writes: merge, split, extract, remove or reorder pages, rotate, watermark, page numbers and compress (counted per step).
- PDF compressed$0.0085Each compressed PDF.
When to use this example
From the PDF Toolkit – Merge, Split, Compress, Convert & Edit PDFs readme:
What if a file fails?
It gets an error row with a plain message (not found, not a PDF, wrong password...) and the other files carry on. Failed files are not charged.
Other ways to run PDF Toolkit – Merge, Split, Compress, Convert & Edit PDFs
- PDF to images, text, embedded images and infoReads a paper's info, extracts the text of pages 1-4, renders them as WebP thumbnails and saves its embedded figures.
- Images to one A4 PDFTurns photos and PNG images into one A4 PDF with margins, page numbers and a title.
All examples of PDF Toolkit – Merge, Split, Compress, Convert & Edit PDFs
About PDF Toolkit – Merge, Split, Compress, Convert & Edit PDFs
Merge, split, compress, rotate, reorder, extract or remove pages, add watermarks and page numbers, convert pages to images and images to PDF, extract text and embedded images, read and write metadata, and add or remove passwords. Chain several steps in one run; every output file gets a download link.
- Price:
- $4.25 / 1,000 results
- Developer:
- Querystone
- Categories:
- Developer tools, Automation, Other
PDF Toolkit – Merge, Split, Compress, Convert & Edit PDFs pageOutput fieldsPricing
Related actors
Latest articles
GuidesWeb Scraper Chrome Extensions: 4 Good Ones, and When to Use a Cloud Scraper
The best web scraper Chrome extensions in 2026 (Web Scraper, Instant Data Scraper, Data Miner and Evomi Web Data), what each is good at, where every extension stops, and how a cloud scraper takes over for schedules, thousands of pages and API access.
Read the article
AI agents12 Best MCP Servers in 2026: Web Data, Code, Docs and Browsers
The best MCP servers in 2026, grouped by job: web data, documentation, code, browsers, errors, databases and the official reference servers. Each with its hosted URL or install command, how it signs in, and the caveats its own README states.
Read the article
Guidesn8n Puppeteer Node: Puppeteer and Playwright in n8n Without Self-Hosting Chrome
The n8n Puppeteer node needs Chromium inside your n8n container and installs only on self-hosted n8n. How it and the Playwright nodes install, where they break, and how to run the same browser scrape on Scrape.ly from n8n instead, with a real tested run.
Read the article
The internet is full of data.
Start owning yours.
Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.