Actions8
Extract PDF Pages
AI-generatedSummary
Extract or reorder specific pages from a PDF document by providing the PDF as either a public HTTPS URL or Base64-encoded content, and specify the pages to extract using a 1-indexed page selection string.
Inputs
- PDF Input Type (required) — Select the input method for the PDF to extract pages from: either a URL or Base64 content.
- PDF URL (required) — Provide a public HTTPS URL pointing to the PDF when 'URL' is selected as the PDF input type.
- PDF Base64 (required) — Provide the Base64-encoded PDF content when 'Base64' is selected as the PDF input type.
- Pages (required) — Specify the pages to extract or reorder using a 1-indexed string, e.g., '1-3, 5' extracts pages 1,2,3,5 and '5,1,3' reorders pages accordingly.
- Options — (Optional) Configure the resulting PDF URL expiration time (in seconds) and a custom filename (without .pdf extension) for the extracted PDF.
Output shape
a single JSON object containing a URL to the extracted PDF file
The output JSON contains a URL with the extracted pages from the source PDF. The link's expiration and filename can be controlled via options. Errors during processing will be returned if 'Continue On Fail' is enabled.
Examples
Example 1: Extract pages 1, 2, and 5 from a PDF accessible via URL
Set PDF Input Type to 'URL', enter the PDF HTTPS URL in 'PDF URL', set 'Pages' to '1-2,5', and optionally configure output options.
Example 2: Reorder pages 5, 1, and 3 from a Base64 encoded PDF
Set PDF Input Type to 'Base64', enter Base64 PDF content in 'PDF Base64', set 'Pages' to '5,1,3', and optionally configure output options.