Stirling PDF icon

Stirling PDF

Merged API: Stirling PDF - Processing API + Stirling PDF - Management API + Stirling PDF - System API

Actions260

General → Rearrange Pages

AI-generated

Summary

Rearrange pages of a PDF file according to specified page numbers or predefined modes such as reversing order, duplicating pages, or arranging for booklet printing.

Inputs

  • fileInputBinaryProperty — Name of the binary property containing the PDF file data (default 'data').
  • fileId — File ID for server-side files to use instead of binary input when working with async jobs.
  • pageNumbers (required) — Pages to select and rearrange, supports ranges (e.g., '1,3,5-9'), 'all', or algebraic functions like '2n+1'.
  • customMode — Predefined rearrangement mode, such as CUSTOM (custom page order), REVERSE_ORDER, DUPLICATE, DUPLEX_SORT, BOOKLET_SORT, ODD_EVEN_SPLIT, REMOVE_FIRST, REMOVE_LAST, or REMOVE_FIRST_AND_LAST.

Output shape

a single binary PDF file with pages rearranged as specified

The output PDF's pages reflect the rearrangement defined by 'pageNumbers' and 'customMode'. If both are used, 'customMode' controls the rearrangement type. Binary output is in the node's binary property for further workflow use.

Links

Discussion