CustomJS (PDF & File Toolkit) icon

CustomJS (PDF & File Toolkit)

All-in-one toolkit for PDF, HTML, JSON and file conversions

PDF → Extract Pages

AI-generated

Summary

Extracts the selected page range from a PDF supplied in a binary field or by URL, then returns the extracted pages as a PDF file.

Inputs

  • Input Type (required) — Choose Binary or URL. Binary is the default.
  • Input Binary Field (required) — For Binary input, name the incoming binary property containing the PDF; defaults to data.
  • URL (required) — For URL input, provide the PDF's URL.
  • Page Range — Pages to extract, such as 1-3 or 4; defaults to 1.
  • Output Filename — Filename for the resulting PDF; defaults to output.pdf.

Output shape

A single n8n item with the extracted PDF in binary property data.

The input item's JSON is preserved and the output is paired with that input. If the service returns no file or an empty buffer, the node returns the item's JSON without binary data.

Links

Discussion