Ilyworks icon

Ilyworks

Transform images and video with the Ilyworks media API

Document (PDF) → Split

AI-generated

Summary

Extract specified pages from a PDF document by providing either a PDF URL or binary PDF input.

Inputs

  • PDF URL — URL of the source PDF file to split (optional if providing binary input).
  • Binary Property — Name of the binary property containing the PDF file used when the PDF URL is not provided (default is 'data').
  • Pages (required) — Page numbers or ranges to extract from the PDF, specified as a string (e.g., '1', '1-3', '1,3,5-7'), using 1-based indexing.

Output shape

Binary data containing the extracted PDF pages saved as a PDF file.

The operation returns the extracted pages as a binary file with 'application/pdf' MIME type. You can provide the source PDF either via a URL or as binary data in the specified property. The output binary property contains the resulting PDF file named 'split.pdf'.

Examples

Example 1: Split pages 1-3 from a PDF URL

Set PDF URL to the source PDF URL and Pages to '1-3'. No binary input needed.

Example 2: Split pages 1,3,5-7 from a binary PDF input

Leave PDF URL empty, set Binary Property to the name of the binary input containing the PDF, and set Pages to '1,3,5-7'.

Links

Discussion