---
type: Article
title: "Gotenberg 8 to 9 migration: a step-by-step guide | Marqius"
description: Gotenberg 9 changed the API that Gotenberg 8 code calls. Pin 8, run
  9 beside it, and move each route and field in ten steps, with every command
  tested.
resource: https://marqius.com/blog/gotenberg-8-to-9-migration/
tags:
  - marqius
  - journal
status: stable
sources:
  - id: official-page
    resource: https://marqius.com/blog/gotenberg-8-to-9-migration/
    last_modified: 2026-12-01T05:00:52.559Z
generated:
  by: process:marqius-site-build
  at: 2026-12-02T08:32:12.045Z
x_marqius:
  language: en
  source_sha256: 69853df5edc6ec0b8262080a748cac72faa57ff02d5c742a403c2435e93a8601
  extraction: public-main-content
---

Gotenberg migration

# 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 December 1, 2026

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](https://gotenberg.dev/docs/getting-started/upgrade), which is the reference for every route, field and setting._

## What you need

-   Docker with its Compose plugin. `docker compose version` prints a version if you have it.
-   `curl`, which most systems already have.
-   A terminal open in the folder that holds your `compose.yaml` or `docker-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:

bash

```
curl http://localhost:3000/version
```

It answers with one line, for example:

text

```
9.11.0
```

Then see which image your compose files ask for:

bash

```
grep -rn "gotenberg/gotenberg" --include="*.yml" --include="*.yaml" .
```

text

```
./compose.yaml:3:    image: gotenberg/gotenberg
```

An 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:

diff

```
   gotenberg:
-    image: gotenberg/gotenberg
+    image: gotenberg/gotenberg:8
```

Start the service again, wait until it answers, and check its version. The last command prints:

bash

```
docker compose up -d
curl --retry 10 --retry-delay 1 --retry-all-errors http://localhost:3000/health
curl http://localhost:3000/version
```

text

```
8.40.0
```

`gotenberg/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.

bash

```
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/version
```

The last command prints the test copy's version:

text

```
9.11.0
```

## Step 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:

bash

```
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.pdf
```

## Step 5. Send a Gotenberg 8 request to both versions

Merge the two PDFs the way Gotenberg 8 takes it. First on Gotenberg 8:

bash

```
curl --request POST http://localhost:3000/forms/pdfengines/merge --form files=@report.pdf --form files=@annex.pdf -o merged.pdf
```

Then send the same request to Gotenberg 9:

bash

```
curl --request POST http://localhost:3001/forms/pdfengines/merge --form files=@report.pdf --form files=@annex.pdf
```

Gotenberg 9 answers with a 404, and the answer names the route that replaced the old one:

text

```
Gotenberg 9 replaced /forms/pdfengines/merge with /forms/pdf/merge
```

Do 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](https://marqius.com/gotenberg/pdfengines-404/).

## Step 6. Change the routes

In Gotenberg 9 the `/forms/pdfengines` routes are `/forms/pdf` routes. The same merge on Gotenberg 9:

bash

```
curl --request POST http://localhost:3001/forms/pdf/merge --form files=@report.pdf --form files=@annex.pdf -o merged.pdf
```

The Chromium and LibreOffice routes, `/health` and `/version` keep their names. Here is every route that moved:

| 
Gotenberg 8

 | 

Gotenberg 9

 |
| --- | --- |
| 

`/forms/pdfengines/merge`

 | 

`/forms/pdf/merge`

 |
| 

`/forms/pdfengines/split`

 | 

`/forms/pdf/split`, or `/forms/pdf/select` for `splitUnify`

 |
| 

`/forms/pdfengines/flatten`

 | 

`/forms/pdf/flatten-form`

 |
| 

`/forms/pdfengines/optimize`

 | 

`/forms/pdf/optimize`

 |
| 

`/forms/pdfengines/convert`

 | 

`/forms/pdf/remediate`

 |
| 

`/forms/pdfengines/metadata/read`

 | 

`/forms/pdf/metadata`

 |
| 

`/forms/pdfengines/metadata/write`

 | 

`/forms/pdf/set-metadata`

 |
| 

`/forms/pdfengines/bookmarks/read`

 | 

`/forms/pdf/bookmarks`

 |
| 

`/forms/pdfengines/bookmarks/write`

 | 

`/forms/pdf/set-bookmarks`

 |
| 

`/forms/pdfengines/encrypt`

 | 

`/forms/pdf/encrypt`

 |
| 

`/forms/pdfengines/embed`

 | 

`/forms/pdf/attach`

 |
| 

`/forms/pdfengines/watermark` and `/forms/pdfengines/stamp`

 | 

`/forms/pdf/stamp-text`, `/forms/pdf/stamp-image` or `/forms/pdf/stamp-pdf`

 |
| 

`/forms/pdfengines/rotate`

 | 

`/forms/pdf/rotate`

 |
| 

`/forms/pdfengines/factur-x`

 | 

`/forms/pdf/remediate` with `profile=Factur-X`

 |
| 

`/prometheus/metrics`

 | 

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:

bash

```
curl --request POST http://localhost:3001/forms/pdf/merge --form files=@report.pdf --form files=@annex.pdf --form pdfa=PDF/A-2b
```

text

```
Invalid 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:

bash

```
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.pdf
```

The conversion routes take `stages` too. In Gotenberg 9, Chromium no longer makes PDF/A by itself, so add a `remediate` stage:

bash

```
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.pdf
```

Two 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

 |
| --- | --- |
| 

`merge`

 | 

`{"op":"merge"}`

 |
| 

`splitMode=intervals`

 | 

`{"op":"split","every":2}`

 |
| 

`splitMode=pages`

 | 

`{"op":"split","ranges":["1","2-3"]}`

 |
| 

`splitUnify`

 | 

`{"op":"select","pages":"1-3"}`

 |
| 

`pdfa`, `pdfua`

 | 

`{"op":"remediate","profile":"..."}`

 |
| 

the encryption fields

 | 

`{"op":"encrypt", ...}`

 |
| 

`embeds`

 | 

`{"op":"attach","file":"data.xml"}`

 |
| 

`watermark`, `stamp`

 | 

`{"op":"stamp-text", ...}`, `stamp-image` or `stamp-pdf`

 |
| 

`rotate`

 | 

`{"op":"rotate","angle":90,"pages":"1"}`

 |
| 

`flatten`

 | 

`{"op":"flatten-form"}`

 |
| 

`facturx`

 | 

`{"op":"remediate","profile":"Factur-X","xml":"invoice.xml"}`

 |

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

 |
| --- | --- |
| 

`waitWindowStatus`

 | 

`waitForWindowStatus`

 |
| 

`generateDocumentOutline`, `exportBookmarks`

 | 

`nativeBookmarks`

 |
| 

`generateTaggedPdf`

 | 

`nativeTaggedPdf`

 |
| 

`singlePageSheets`

 | 

`singlePage`

 |
| 

`pdfa` and `pdfua` on Chromium and LibreOffice

 | 

`nativePdfa` and `nativePdfua`

 |
| 

`quality` (LibreOffice)

 | 

`nativeQuality`

 |
| 

`losslessImageCompression`, `reduceImageResolution`, `maxImageResolution`

 | 

the same names with `native` in front

 |
| 

`nativeWatermarkFontHeight`, `nativeWatermarkFontName`, `nativeWatermarkRotateAngle`

 | 

`nativeWatermarkFontSize`, `nativeWatermarkFont`, `nativeWatermarkRotation`

 |

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

 |
| --- | --- |
| 

`UNOCONVERTER_BIN_PATH`

 | 

`LOK_BIN_PATH`

 |
| 

`--pdfengines-disable-routes`

 | 

`--pdf-disable-routes`

 |
| 

`--pdfengines-max-concurrency`

 | 

`--pdf-max-concurrency`

 |
| 

`--pdfengines-*-engines`

 | 

Removed

 |
| 

`--prometheus-*`

 | 

Removed: set `OTEL_METRICS_EXPORTER=prometheus`

 |
| 

`--api-trace-header`

 | 

`--api-correlation-id-header`

 |
| 

`--api-disable-health-check-logging`

 | 

`--api-disable-health-check-route-telemetry`

 |
| 

`--log-format`

 | 

`--log-std-format`

 |
| 

`--log-enable-gcp-fields`

 | 

`--log-std-enable-gcp-fields`

 |
| 

`--chromium-incognito`

 | 

Removed

 |
| 

`--webhook-error-allow-list`, `--webhook-error-deny-list`

 | 

Removed

 |

Three more changes can catch you out:

-   **Webhooks.** Gotenberg 9 needs `Gotenberg-Webhook-Events-Url` next to `Gotenberg-Webhook-Url`, and errors arrive as `webhook.error` events.
-   **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 `.epub` files. 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:

diff

```
   gotenberg:
-    image: gotenberg/gotenberg:8
+    image: gotenberg/gotenberg:9
```

Start the service again, check its version, and stop the test copy. The third command prints:

bash

```
docker compose up -d
curl --retry 10 --retry-delay 1 --retry-all-errors http://localhost:3000/health
curl http://localhost:3000/version
docker stop gotenberg9
```

text

```
9.11.0
```

## Check 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](https://github.com/gotenberg/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](https://marqius.com/gotenberg/paperless-ngx/) 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:

bash

```
docker pull marqius/kern
```

**Start it** on port 3002, next to your Gotenberg, and wait until it answers:

bash

```
docker run --rm -d --name kern -p 3002:3000 marqius/kern
curl --retry 10 --retry-delay 1 --retry-all-errors http://localhost:3002/health
```

**Make a first PDF** from a web page:

bash

```
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/html
```

**Send it a Gotenberg 8 merge and a Gotenberg 9 merge.** Both answer with the merged PDF:

bash

```
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.pdf
```

**Turn 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:

bash

```
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.pdf
```

Add `--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:

diff

```
-    image: gotenberg/gotenberg:9
+    image: marqius/kern
```

**Stop the test copy** when you are done:

bash

```
docker stop kern
```

We 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](https://github.com/marqiushq/gotenberg-compatibility). 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](https://marqius.com/gotenberg/pricing/). The [switching guide](https://marqius.com/gotenberg/guide/) shows the switch step by step, and the [API reference](https://marqius.com/gotenberg/api/) lists every route of both versions.

## A checklist for the move

1.  Find every `gotenberg/gotenberg` image line, and pin any that has no tag or says `latest`.
2.  Search your code for `/forms/pdfengines` and `/prometheus/metrics`.
3.  Search for the old fields: `pdfa`, `pdfua`, `watermark`, `embeds`, `splitMode`, `facturx`.
4.  Search your settings for `--pdfengines`, `--prometheus`, `UNOCONVERTER_BIN_PATH`, `--chromium-incognito` and `--api-trace-header`.
5.  Check your client library's support, and its issues.
6.  Run Gotenberg 9 beside 8, send your app's real requests to both, and read every 404 and 400.
7.  End your stages with `remediate` wherever a PDF must be PDF/A.
8.  Rename what your dashboards and alerts read, and add `Gotenberg-Webhook-Events-Url`.
9.  Switch the image line, and stop the test copy.
10.  Whichever way you go, write down the date you will look again.

## Sources

-   Gotenberg: [Upgrade from 8.x](https://gotenberg.dev/docs/getting-started/upgrade), the reference for every route, field and setting
-   Gotenberg: [the 9.0.0 release notes](https://github.com/gotenberg/gotenberg/releases/tag/v9.0.0) and the [list of releases](https://github.com/gotenberg/gotenberg/releases)
-   [awesome-gotenberg](https://github.com/gotenberg/awesome-gotenberg), the curated list of client libraries and apps
-   [gotenberg-compatibility](https://github.com/marqiushq/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.

## Keep reading

[Use Marqius Kern with Ruby and Rails](https://marqius.com/blog/ruby-rails-gotenberg-marqius-kern/) [Generate PDFs in Swift with gotenberg-kit and Marqius Kern](https://marqius.com/blog/swift-gotenberg-kit-marqius-kern/) [Generate PDFs in Rust with gotenberg\_pdf and Marqius Kern](https://marqius.com/blog/rust-gotenberg-pdf-marqius-kern/) [All journal guides](https://marqius.com/blog/)

Source for this page [^official-page].

[^official-page]: https://marqius.com/blog/gotenberg-8-to-9-migration/

[Browse this section](index.md) · [Knowledge index](../index.md)
