Gotenberg icon

Gotenberg

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

PDF Engines → Write Metadata

AI-generated

Summary

Write metadata into a PDF file stored in a binary property

Inputs

  • binaryPropertyName (required) — Name of the binary property (or comma-separated list of names for merge) containing the input PDF(s)
  • metadata — PDF metadata properties to write as a JSON object
  • outputBinaryPropertyName — Name of the binary property to store the output file
  • outputFilename — Filename for the output file (including extension)

Output shape

a single output item containing the modified PDF as binary data

binary data is placed in the property named by outputBinaryPropertyName; outputFilename and mime type are included in the json part

Examples

Example 1: Add author and title to an uploaded PDF

binaryPropertyName="data", metadata="{"Author":"Jane Doe","Title":"Annual Report"}", outputBinaryPropertyName="result", outputFilename="updated.pdf"

Example 2: Write metadata into a PDF stored in a binary property

binaryPropertyName="pdfData", metadata="{"Author":"John","Title":"Report"}", outputBinaryPropertyName="outputPdf", outputFilename="report.pdf"

Links

Discussion