Set the metadata
Writes the title, author and dates a viewer shows.
POST/forms/pdf/set-metadata
Form data
Options
curl \
--request POST http://localhost:3000/forms/pdf/set-metadata \
--form files=@report.pdf \
--form 'title=Annual report' \
--form author=Finance \
--form creationDate=D:20261001090000Z \
-o report.pdf
A field you leave out keeps its value. Dates take the PDF format: D: then the year, month, day, hours, minutes, seconds and a time zone, Z for UTC. /forms/pdf/metadata reads the metadata under the same names, so its answer feeds straight back into this route.
In a list of stages
The stage also runs in a list on /forms/pdf/pipe, and on the PDFs a Chromium or LibreOffice conversion makes, in its stages field:
curl \
--request POST http://localhost:3000/forms/pdf/pipe \
--form files=@report.pdf \
--form 'stages=[
{ "op": "set-metadata", "title": "Q3 report", "author": "Finance", "creationDate": "D:20261001090000Z" }
]' \
-o report.pdf