Gotenberg 8 to 9: the migration, step by step
Gotenberg turns web pages and Office files into PDFs, and many apps run it in Docker next to their own code. Gotenberg 9 came out on 5 November 2026, and the image tagged latest moved to version 9 with it. Version 9 renamed the PDF routes and moved most of the extra fields into a new list called stages. Code written for Gotenberg 8 gets 404 and 400 answers from it.
Marqius

This guide takes you through the move in ten steps, from "which version am I running?" to a tested switch. You can stop after step 2 and still be safe today. Every command below was run as printed on 1 December 2026, against Gotenberg 8.40.0 and 9.11.0.
Disclosure: Simple AI LLC publishes this guide and makes Marqius Kern, the server in the last part. The steps for Gotenberg itself follow Gotenberg's own upgrade guide, which is the reference for every route, field and setting.
What you need
- Docker with its Compose plugin.
docker compose versionprints a version if you have it. curl, which most systems already have.- A terminal open in the folder that holds your
compose.yamlordocker-compose.yml.
The examples use port 3000 for your Gotenberg, 3001 for a test copy of Gotenberg 9 and 3002 for Marqius Kern. If a port is already in use on your machine, change the first number in the -p option.
Step 1. Find out which Gotenberg you run
Ask the Gotenberg your app uses for its version:
curl http://localhost:3000/versionIt answers with one line, for example:
9.11.0Then see which image your compose files ask for:
grep -rn "gotenberg/gotenberg" --include="*.yml" --include="*.yaml" ../compose.yaml:3: image: gotenberg/gotenbergAn image with no tag, or with :latest, means Gotenberg 9 from your next pull. If your version starts with 9 and your code was written for 8, step 2 puts it back.
Step 2. Pin Gotenberg 8 today
To pin an image is to name its version in the image line, so that a pull can never move you. In your compose file:
gotenberg:
- image: gotenberg/gotenberg
+ image: gotenberg/gotenberg:8Start the service again, wait until it answers, and check its version. The last command prints:
docker compose up -d
curl --retry 10 --retry-delay 1 --retry-all-errors http://localhost:3000/health
curl http://localhost:3000/version8.40.0gotenberg/gotenberg:8 is 8.40.0, the last 8.x release. Gotenberg says this image stays available, but it gives no end date, and every release since 5 November has been a 9.x. Treat the pin as a pause, and write down the date you will look at it again.
Step 3. Start Gotenberg 9 next to it
Run a test copy of Gotenberg 9 on port 3001. Your app keeps talking to Gotenberg 8 on port 3000.
docker run --rm -d --name gotenberg9 -p 3001:3000 gotenberg/gotenberg:9
curl --retry 10 --retry-delay 1 --retry-all-errors http://localhost:3001/health
curl http://localhost:3001/versionThe last command prints the test copy's version:
9.11.0Step 4. Make two test PDFs
The Chromium routes kept their names in Gotenberg 9, so this request works on both versions. Make two small PDFs with your Gotenberg 8:
printf '<!doctype html><html><body><h1>Report</h1><p>The first test file.</p></body></html>' > index.html
curl --request POST http://localhost:3000/forms/chromium/convert/html --form files=@index.html -o report.pdf
printf '<!doctype html><html><body><h1>Annex</h1><p>The second test file.</p></body></html>' > index.html
curl --request POST http://localhost:3000/forms/chromium/convert/html --form files=@index.html -o annex.pdfStep 5. Send a Gotenberg 8 request to both versions
Merge the two PDFs the way Gotenberg 8 takes it. First on Gotenberg 8:
curl --request POST http://localhost:3000/forms/pdfengines/merge --form files=@report.pdf --form files=@annex.pdf -o merged.pdfThen send the same request to Gotenberg 9:
curl --request POST http://localhost:3001/forms/pdfengines/merge --form files=@report.pdf --form files=@annex.pdfGotenberg 9 answers with a 404, and the answer names the route that replaced the old one:
Gotenberg 9 replaced /forms/pdfengines/merge with /forms/pdf/mergeDo the same with the requests your app sends. Every 404 and 400 from Gotenberg 9 says what to change, so this step finds most of your work. More on this answer: 404 on /forms/pdfengines after moving to Gotenberg 9.
Step 6. Change the routes
In Gotenberg 9 the /forms/pdfengines routes are /forms/pdf routes. The same merge on Gotenberg 9:
curl --request POST http://localhost:3001/forms/pdf/merge --form files=@report.pdf --form files=@annex.pdf -o merged.pdfThe Chromium and LibreOffice routes, /health and /version keep their names. Here is every route that moved:
Gotenberg 8 | Gotenberg 9 |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Removed (see step 9) |
Step 7. Move the extra fields into stages
In Gotenberg 8, fields such as pdfa, merge or watermark asked for more work after the conversion, and the server did that work in a fixed order. In Gotenberg 9 you list the work yourself, in the order you want, as JSON in one field called stages. If you send an old field to Gotenberg 9, it answers 400 and says where the field went:
curl --request POST http://localhost:3001/forms/pdf/merge --form files=@report.pdf --form files=@annex.pdf --form pdfa=PDF/A-2bInvalid form data: form field 'pdfa' is unknown to this route; Gotenberg 9 moved it to a stage: add {"op":"remediate","profile":"PDF/A-2b"} to 'stages'The same job in Gotenberg 9: merge, then make the result PDF/A. The pipe route runs the stages you list on the PDFs you send:
curl --request POST http://localhost:3001/forms/pdf/pipe --form files=@report.pdf --form files=@annex.pdf --form 'stages=[{"op":"merge"},{"op":"remediate","profile":"PDF/A-2b"}]' -o merged-pdfa.pdfThe conversion routes take stages too. In Gotenberg 9, Chromium no longer makes PDF/A by itself, so add a remediate stage:
curl --request POST http://localhost:3001/forms/chromium/convert/html --form files=@index.html --form 'stages=[{"op":"remediate","profile":"PDF/A-2b"}]' -o annex-pdfa.pdfTwo rules help here. Put remediate last, because Gotenberg 9 no longer redoes the PDF/A conversion after the other stages. And Gotenberg 9 checks the order of your stages before it starts, so a list in the wrong order gets a 400 before any work is done.
Gotenberg 8 field | Gotenberg 9 stage |
|---|---|
|
|
|
|
|
|
|
|
|
|
the encryption fields |
|
|
|
|
|
|
|
|
|
|
|
Each stage is also a route of its own, /forms/pdf/<op>, which takes the same settings as form fields.
Step 8. Rename the fields that are left
Some fields kept their job but changed their name. The rule is that a field that also exists as a stage now starts with native. The ones most requests meet:
Gotenberg 8 | Gotenberg 9 |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
| the same names with |
|
|
Gotenberg 9 also adds paperSize, which names a paper format for both engines: A3, A4, A5, B4, B5, Letter, Legal or Tabloid.
A few fields are gone with no direct replacement: firstPageOnLeft, nativePdfFormats, downloadFrom[].embedded, facturxVersion, the merge bookmark options, optimizeImages, imageQuality, and the stamp anchors, fonts and page numbers. The upgrade guide lists each one.
Step 9. Update settings, webhooks and metrics
If you start Gotenberg with flags or environment variables, rename these:
Gotenberg 8 | Gotenberg 9 |
|---|---|
|
|
|
|
|
|
| Removed |
| Removed: set |
|
|
|
|
|
|
|
|
| Removed |
| Removed |
Three more changes can catch you out:
- Webhooks. Gotenberg 9 needs
Gotenberg-Webhook-Events-Urlnext toGotenberg-Webhook-Url, and errors arrive aswebhook.errorevents. - Metrics. Metric names now follow OpenTelemetry, such as
gotenberg.chromium.requests. Dashboards and alerts that read the old names go quiet. - What is inside the image. Java, Python, unoconverter, pdfcpu, QPDF, pdftk and ExifTool are gone, and the LibreOffice route no longer takes
.epubfiles. If a script of yours runs inside the container, check that it still has what it calls.
Step 10. Switch for good
When your app's own tests pass against Gotenberg 9, change the image line once more:
gotenberg:
- image: gotenberg/gotenberg:8
+ image: gotenberg/gotenberg:9Start the service again, check its version, and stop the test copy. The third command prints:
docker compose up -d
curl --retry 10 --retry-delay 1 --retry-all-errors http://localhost:3000/health
curl http://localhost:3000/version
docker stop gotenberg99.11.0Check your client library first
Most apps reach Gotenberg through a client library, and the library has to move to 9 before your app can. Gotenberg's own curated list, awesome-gotenberg, records which version each library supports. On 1 December 2026:
Supports | Libraries |
|---|---|
Gotenberg 9 | PHP: gotenberg-php. C#: GotenbergSharpApiClient. Java: jotenberg. TypeScript: chromiumly. |
Up to Gotenberg 8 | PHP: the Symfony GotenbergBundle, laravel-pdf and igeek pdfservice. Python: gotenberg-client. Java: gotenberg-spring. Go: gotenberg-go-client and nativebpm's gotenberg. Ruby: gotenberg-ruby and ruby-gotenberg-client. Kotlin: kotenberg. Swift: gotenberg-kit. Deno: EC-Nordbund's gotenberg. |
So for twelve of the sixteen current libraries, nobody has recorded that they work with Gotenberg 9. If yours is one of them, look at its own issues and releases before you change your compose file.
Paperless-ngx is the app most home users meet. Its example compose files pin gotenberg/gotenberg:8.38, and its current release, 3.5.1, uses version 1.0.0 of the Python gotenberg-client, which calls the /forms/pdfengines routes and sends the pdfa field. Keep Paperless-ngx on Gotenberg 8 until the project moves. Our Paperless-ngx page shows the one-line switch if you want both versions' routes on one server.
Can't move yet? Keep your Gotenberg 8 code with Marqius Kern
Pinning version 8 changes nothing, but version 8 is standing still. Marqius Kern is a third way: one server that answers both Gotenberg's 8.x API and its 9.x API, so the code you wrote for 8 keeps working and the 9.x routes are there when you want them. It is a 41 MB Docker image with no browser and no office suite inside.
Download and run Marqius Kern
Download the image. It is 41 MB, for amd64 and arm64:
docker pull marqius/kernStart it on port 3002, next to your Gotenberg, and wait until it answers:
docker run --rm -d --name kern -p 3002:3000 marqius/kern
curl --retry 10 --retry-delay 1 --retry-all-errors http://localhost:3002/healthMake a first PDF from a web page:
echo '<h1>Invoice 1001</h1><p>Thank you for your order.</p>' | curl -sS --fail -F 'files=@-;filename=index.html' -o invoice.pdf http://localhost:3002/forms/chromium/convert/htmlSend it a Gotenberg 8 merge and a Gotenberg 9 merge. Both answer with the merged PDF:
curl --request POST http://localhost:3002/forms/pdfengines/merge --form files=@report.pdf --form files=@annex.pdf -o merged-8.pdf
curl --request POST http://localhost:3002/forms/pdf/merge --form files=@report.pdf --form files=@annex.pdf -o merged-9.pdfTurn an email into a PDF, which Gotenberg has no route for. Marqius Kern reads emails (.eml, .msg) and whole mailboxes (.mbox, .pst, .ost) itself. By default it makes an archival PDF that keeps the message and its attachments together:
printf 'From: Ada <ada@example.com>\nTo: Bob <bob@example.com>\nSubject: Order 1001\nDate: Mon, 30 Nov 2026 10:00:00 +0000\nContent-Type: text/plain; charset=utf-8\n\nThank you for your order.\n' > order.eml
curl --request POST http://localhost:3002/forms/kern/convert/email --form files=@order.eml -o order-email.pdfAdd --form profile=plain for the message alone, or --form profile=court for a PDF made for filing. Paperless-ngx users meet this every day: today it renders each email through Gotenberg's Chromium route, and Marqius Kern answers that route too.
To switch for good, change one line in your compose file. Port 3000, the gotenberg command and its flags, and your client library's settings all stay the same:
- image: gotenberg/gotenberg:9
+ image: marqius/kernStop the test copy when you are done:
docker stop kernWe ran other people's tests, unchanged, against both programs on GitHub's own machines, and published every result, the misses included, on a public scoreboard. For Marqius Kern 0.12.18:
Test suite | Pass with Gotenberg | Of those, pass with Marqius Kern |
|---|---|---|
Gotenberg 8.40.0's own integration tests | 552 | 551 |
Gotenberg 9.10.3's own integration tests, Marqius Kern answering both APIs | 540 | 495 |
The same tests, Marqius Kern answering Gotenberg 9's API only | 540 | 502 |
12 client libraries and apps | 1,007 | 1,005 |
Read the misses before you choose. Some are on purpose: Marqius Kern makes a PDF/A file from the page as printed, where Gotenberg sends it through LibreOffice to be laid out again, which is why two of Paperless-ngx's eight tests differ. Others are features not built yet. The scoreboard lists all 49 tests with the reason for each.
Marqius Kern is free with a Community licence for personal, teaching and open-source use. A business needs a paid licence: see the Marqius Kern plans. The switching guide shows the switch step by step, and the API reference lists every route of both versions.
A checklist for the move
- Find every
gotenberg/gotenbergimage line, and pin any that has no tag or sayslatest. - Search your code for
/forms/pdfenginesand/prometheus/metrics. - Search for the old fields:
pdfa,pdfua,watermark,embeds,splitMode,facturx. - Search your settings for
--pdfengines,--prometheus,UNOCONVERTER_BIN_PATH,--chromium-incognitoand--api-trace-header. - Check your client library's support, and its issues.
- Run Gotenberg 9 beside 8, send your app's real requests to both, and read every 404 and 400.
- End your stages with
remediatewherever a PDF must be PDF/A. - Rename what your dashboards and alerts read, and add
Gotenberg-Webhook-Events-Url. - Switch the image line, and stop the test copy.
- Whichever way you go, write down the date you will look again.
Sources
- Gotenberg: Upgrade from 8.x, the reference for every route, field and setting
- Gotenberg: the 9.0.0 release notes and the list of releases
- awesome-gotenberg, the curated list of client libraries and apps
- gotenberg-compatibility, the public scoreboard for Marqius Kern
Reader questions
Does Gotenberg 8 still work?
Yes. The image gotenberg/gotenberg:8 is still published and runs 8.40.0, the last 8.x release. Gotenberg says it stays available but gives no end date, and all new releases since 5 November 2026 are 9.x, so pin it as a pause and plan the move.
What does the latest tag mean for Gotenberg now?
Since 5 November 2026, gotenberg/gotenberg:latest, and an image line with no tag at all, means Gotenberg 9. Your next pull of such an image moves you to 9, so name a version in your compose file: gotenberg/gotenberg:8 to stay, or gotenberg/gotenberg:9 once you have moved.
Why does Gotenberg 9 answer 404 on /forms/pdfengines/merge?
Gotenberg 9 renamed the PDF routes: /forms/pdfengines/merge is now /forms/pdf/merge, and every other /forms/pdfengines route has a counterpart under /forms/pdf. The 404 names the new route. Change the address, or pin Gotenberg 8 until your code or your client library has moved.
What does "form field is unknown to this route" mean in Gotenberg 9?
You sent a Gotenberg 8 field that Gotenberg 9 moved. Most of the old extra fields, such as pdfa, merge and watermark, are now stages that you list in one JSON field called stages, and the others have new names that start with native. The answer says where the field went.
How do I make a PDF/A file with Gotenberg 9?
Add a remediate stage with the PDF/A level you need, for example stages=[{"op":"remediate","profile":"PDF/A-2b"}], and put it last in the list. Gotenberg 9's Chromium no longer makes PDF/A by itself, and Gotenberg 9 does not redo the PDF/A conversion after other stages.
Can I run Gotenberg 8 and 9 at the same time?
Yes. Run each on its own port, for example 8 on 3000 and 9 on 3001, and send the same requests to both while you move. Marqius Kern answers both versions' routes on one server, if you want that permanently.
Can Gotenberg convert emails to PDF?
Not by itself: Gotenberg has no email route, so apps such as Paperless-ngx turn each email into a web page first and send that to Gotenberg's Chromium route. Marqius Kern answers that route too, and adds its own email route, which reads .eml, .msg, .mbox, .pst and .ost files and keeps the attachments with the message in one archival PDF.