
Extract Pages from a PDF to Isolate Key Data
Extract Only the PDF Pages a Workflow Needs
Large PDF documents often contain more information than a particular recipient or downstream process needs. A claims package may include supporting records that belong in separate review queues. A quarterly report may need to be divided into individual department sections. A legal team may need to share one exhibit without distributing the full case file. Extracting the relevant pages creates a smaller, focused PDF while preserving the original page appearance and document format.
The pdfRest Split PDF API Tool gives applications precise control over which pages belong in each output. A single request can export one page, a continuous range, a custom sequence, or several separate PDFs from the same source document. This flexibility makes page extraction useful for automated distribution, archiving, intake, and document-routing workflows—not only for manually splitting a file into equal parts.
Define Exact Page Ranges and Output Files
The pages[] parameter describes the page content for each new PDF. For example, 3-6 produces one PDF containing pages 3 through 6. Values can also combine individual pages and ranges, such as 1,4,8-12, or use even, odd, and last when the selection follows the document structure.
Page order is controlled by the order supplied in the request. A sequence such as 5,3,1 creates a PDF with those pages in that order, while repeating a page number duplicates it in the result. Supplying pages[] more than once creates multiple output documents in the same API call, which avoids submitting the source PDF separately for every section. If the parameter is omitted, Split PDF creates one output PDF for every input page.
This one-to-many behavior is especially useful when an application already knows the document layout. A report-processing service can create separate cover, financial, and appendix files in one request, then route each output resource to the correct system or recipient.
Produce Focused, Optimized PDF Outputs
Each split result is optimized to retain the content needed by its selected pages rather than carrying unrelated resources from the entire source file. Removing unused document content can produce cleaner, smaller outputs than a process that simply hides or omits pages while leaving their associated resources behind.
Each generated PDF receives its own output URL and resource ID, so an application can deliver the selected section or continue it directly into another pdfRest operation. An extracted exhibit, for example, can move to redaction, compression, PDF/A conversion, or password protection without downloading and uploading an intermediate file between steps.
Automate Reliable Page Extraction
The cURL request below extracts pages 3 through 6 as one new PDF. Use page selections from known templates, document metadata, user input, or an earlier analysis step. The response returns one output for each submitted pages[] selection, making it straightforward for the application to route every section to its intended recipient or downstream process.
Preserve the existing cURL example here with corrected formatting and current API Lab link.
When documents vary in length, keywords such as last can keep the request flexible. When page selection depends on document text or structure, the application can first use an extraction or analysis tool to determine the relevant page numbers, then send that selection to Split PDF.
Use API Lab to test page-range combinations, and consult the Split PDF API reference for the current request and response fields.