Actions20
- Document Management Actions
- PDF to Format Actions
- Format to PDF Actions
- Security & Signing Actions
Document Management → Crop PDF
AI-generatedSummary
Crop specific regions of a PDF document by applying either a uniform crop to all pages or individual crops per page, based on JSON-defined crop areas.
Inputs
- Input Method (required) — Select the input source method: 'binary' to use file binary data from a previous node, or 'url' to fetch the PDF from a public URL.
- File URL (required) — Provide the public URL of the PDF file to crop. Required if Input Method is 'url'.
- Input Binary Property (required) — Specify the binary property name from a previous node containing the PDF file. Required if Input Method is 'binary'.
- Crop Mode (required) — Choose whether to apply the same crop region to all pages ('uniform') or specify different crop regions per page ('perPage').
- Crop Data (JSON) (required) — Provide a JSON array defining crop regions. Each object must include 'pageNumber' (number) and 'cropArea' with properties 'x', 'y', 'width', 'height', and 'unit' (e.g., 'pt', 'px', 'mm', 'in'). For 'uniform' mode, only the first array entry is used; for 'perPage' mode, only specified pages are included in the output.
- Output Type (required) — Choose how the cropped PDF file is returned: as binary data or a temporary download URL valid for 1 hour.
- Output Binary Property — Name of the binary property to store the cropped PDF if Output Type is 'binary'. Defaults to 'data'.
Output shape
a single processed PDF file
Returns the cropped PDF document. If Output Type is 'binary', the file is returned as binary data in the specified output property. If 'url', returns a JSON containing a temporary download URL, valid for 1 hour.