Gotenberg icon

Gotenberg

Convert documents and manipulate PDFs using Gotenberg (Chromium, LibreOffice, PDF Engines)

PDF Engines → Flatten PDF

AI-generated

Summary

Flatten a PDF by removing annotations and interactive form fields

Inputs

  • binaryPropertyName (required) — Name of the binary property (or comma-separated list) containing the input PDF(s)
  • operation — The PDF Engines operation to perform; set to 'flatten' for this operation
  • outputBinaryPropertyName — Name of the binary property where the flattened PDF will be stored
  • outputFilename — Filename for the output file (including extension)

Output shape

single record containing a binary file (the flattened PDF) plus metadata (filename, mimeType)

Binary output is emitted on the configured outputBinaryPropertyName; optional filename and mimeType appear in the JSON payload; errors propagate or are captured if continueOnFail is enabled

Examples

Example 1: Flatten a PDF uploaded via binary property 'data'

binaryPropertyName: data; operation: flatten; outputBinaryPropertyName: flattenedPdf

Example 2: Flatten each PDF in a list of properties and store result in 'result' property

binaryPropertyName: files; operation: flatten; outputBinaryPropertyName: result; outputFilename: flat.pdf

Links

Discussion