/forms/pdfengines routes with /forms/pdf. Most changes below follow Gotenberg’s own upgrade guide.
Steps
1
Upgrade Gotenberg
Move your image to
gotenberg/gotenberg:9, and your Gotenberg configuration with it: see Gotenberg’s upgrade guide for its flags and environment variables.2
Upgrade Chromiumly
Bump Chromiumly to
^7 with your package manager (see Installation). The type declarations need TypeScript 5.0 or later.3
Update your calls
Work through the tables below. TypeScript flags most changes, since the removed options and the renamed fields no longer type-check.
PDFEngines becomes PDF
Post-processing options become stages
On the Chromium and LibreOfficeconvert() methods, the post-processing options are gone. Add the matching stage to stages:
Before and after:
Renamed fields
Other changes
webhookrequires bothwebhookUrlandwebhookEventsUrl;webhookErrorUrlandwebhookErrorMethodare gone, and errors arrive aswebhook.errorevents. See Webhooks.System.getPrometheusMetrics()is gone, with Gotenberg’s Prometheus route: Gotenberg 9 exports its metrics with OpenTelemetry.- The
PdfFormatenum and thePdfEngine*types are gone; use thePdfaProfile,ConformanceProfilesand stage types. - LibreOffice no longer accepts
.epub. Chromiumly uploads LibreOffice documents asfileNN.<ext>, and Gotenberg 9 names each PDF after its document, so a single document comes back asfile01.docx.pdfunless you setoutputFilename. - The
PDFread methods answer one entry per PDF under its file name: a path keeps its base name, aBufferorReadStreamisfileNN.pdf, unless you pass{ file, name }. - Two uploads under the same name now throw before the request is sent.
New in Chromiumly 7
- Every stage, and a
PDFmethod for each: insert, compose, redact, sign, timestamp, set-form, render, extract-text, and more. - Read methods that answer typed JSON:
info,metadata,bookmarks,attachments,form,validate. archivesanddownloadFrom[].filename.paperSizeon Chromium and LibreOffice,waitForWindowStatus,failOnConsoleMessageTypes, and the screenshotselector.