Stirling PDF icon

Stirling PDF

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

Actions260

General → Create Booklet Imposition

AI-generated

Summary

Create a booklet-imposed PDF by rearranging pages with specified layout options for booklet printing.

Inputs

  • fileInputBinaryProperty — Binary property name containing the input PDF file data (default 'data').
  • fileId — Server-side file ID to use instead of uploading a file binary, useful for async operations.
  • pagesPerSheet (required) — Number of pages per sheet side (must be 2 for proper booklet imposition).
  • addBorder — Boolean to add a border around each page.
  • spineLocation — Location of the booklet spine, either LEFT or RIGHT.
  • addGutter — Boolean to add a gutter margin (inner binding margin).
  • gutterSize — Size of the gutter margin in points, used if addGutter is true.
  • doubleSided — Boolean to generate both front and back sides for double-sided printing.
  • duplexPass — Specify which pass to generate for manual duplex printing: FIRST, SECOND, or BOTH.
  • flipOnShortEdge — Boolean to flip back sides on the short edge for duplex printing (default is long edge).

Output shape

a single binary PDF file rearranged for booklet printing

The output is a PDF binary suitable for printing as a booklet with the specified page imposition. Optional parameters control layout details like borders, binding gutter, and duplex options. Input can be supplied either as binary data or as a server-side file ID.

Examples

Example 1: Input a PDF binary named 'data' with pages per sheet set to 2 and spine on the left to produce a booklet PDF.

Set 'fileInputBinaryProperty' to 'data', 'pagesPerSheet' to 2, and 'spineLocation' to 'LEFT'.

Links

Discussion