v1
latestOpenAPI 3.1.02026-08-06244570.4 KBPDF Tools
Extract pages from a PDF
Return a single PDF containing only the selected pages of the input, in the order specified. Replaces the need for splitting + reassembling client-side.
Pages syntax: 1-indexed, comma-separated. Supports ranges (1-3) and singles (5). Order is preserved: 5,1,3 outputs those 3 pages in that order.
Credits: 1 credit per call.
post/v1/pdf-tools/extract-pages
Request body
Example request
{
"filename": "merged",
"pdf_url": "https://example.com/file.pdf",
"pdf_base64": "JVBERi0xLjQKJ...",
"pages": "1-3, 5, 7-9"
}Response
Successful Response