Stirling PDF icon

Stirling PDF

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

Actions260

Misc → Flatten

AI-generated

Summary

Flatten a PDF document by either converting entire pages to images or flattening only the form fields into static content.

Inputs

  • fileInputBinaryProperty — The name of the binary field containing the PDF file data to be flattened (default is 'data').
  • fileId — The file ID of a PDF previously uploaded or processed, used for server-side processing instead of uploading a new file.
  • flattenOnlyForms (required) — Boolean flag deciding whether to flatten only PDF form fields (true) or to convert entire PDF pages into images (false).
  • renderDpi — Optional dots per inch (DPI) setting to control the resolution when rendering pages as images during full document flattening.
  • requestOptions — Node execution options such as batching (number of items per batch and interval), SSL certificate validation behavior, HTTP proxy settings, and request timeout in milliseconds.

Output shape

a single binary PDF file with specified flattening applied

The operation returns the flattened PDF file as binary data. Input can be provided either as binary data or by referencing a stored fileId. Batching parameters on requestOptions apply if multiple items are processed.

Links

Discussion