Docs

POST /v1/pdf/extract

Use POST /v1/pdf/extract to keep selected pages from one PDF (split or excerpt). Pages are 1-indexed. To drop pages instead, use POST /v1/pdf/delete-pages.

Provide one source (url or file) and a pages selection. Pages are 1-indexed.

pages format

A range string like 1-3,5 or an array of page numbers [1, 2, 3, 5].

Example

Keep selected pages.

POST /v1/pdf/extract
{
  "url": "https://example.com/report.pdf",
  "pages": "1-3,5"
}