404 on /forms/pdfengines after moving to Gotenberg 9
Gotenberg 9, released on 5 November 2026, replaced the /forms/pdfengines routes with /forms/pdf routes, and its latest tag moved to 9 with it. Code written for Gotenberg 8, and the client libraries and apps that call those routes, now get 404. Pin gotenberg/gotenberg:8 to keep them working, move the calls to Gotenberg 9’s routes, or use a server that answers both.
The answer, with status 404:
Gotenberg 9 replaced /forms/pdfengines/merge with /forms/pdf/mergeGotenberg 9 moved the PDF routes.
- The routes moved. Every route under
/forms/pdfengineshas a counterpart under/forms/pdf, and the old paths answer 404 with the name of the new one. - The extra fields moved too. What Gotenberg 8 did after a conversion or a merge (
pdfa,pdfua,metadata,flattenand the rest) is now an ordered list ofstages. Sent the old way, those fields answer 400, with a hint. - The
latesttag is Gotenberg 9 now. An image pulled asgotenberg/gotenbergorgotenberg/gotenberg:9runs Gotenberg 9, while code and client libraries written for 8 keep calling 8’s routes. - Apps pin Gotenberg 8 for this reason. Paperless-ngx’s compose files, for one, use Gotenberg 8.38: its email archiving calls
/forms/pdfengines/merge.
| 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 /stamp | /forms/pdf/stamp-text, /stamp-image or /stamp-pdf |
/forms/pdfengines/rotate | /forms/pdf/rotate |
/forms/pdfengines/factur-x | /forms/pdf/remediate with profile=Factur-X |
Pin 8, or move to 9.
To keep Gotenberg 8, pin its image in your compose file, then start the service again:
gotenberg:
- image: gotenberg/gotenberg
+ image: gotenberg/gotenberg:8
docker compose up -dcurl --retry 10 --retry-delay 1 --retry-all-errors http://localhost:3000/healthcurl --request POST http://localhost:3000/forms/pdfengines/merge --form files=@1-report.pdf --form files=@2-annex.pdf -o merged.pdfThe second command waits until the server answers; the third is a Gotenberg 8 call, answered again (1-report.pdf and 2-annex.pdf stand for your own files). gotenberg/gotenberg:8 is Gotenberg 8.40.0, the last 8.x release; Gotenberg gives security updates to its latest version only.
To move to Gotenberg 9, change each call to its new route, and send the old extra fields as stages. A merge:
curl --request POST http://localhost:3000/forms/pdf/merge --form files=@1-report.pdf --form files=@2-annex.pdf -o merged.pdfA merge that also asked for PDF/A (pdfa=PDF/A-2b in Gotenberg 8):
curl --request POST http://localhost:3000/forms/pdf/pipe --form files=@1-report.pdf --form files=@2-annex.pdf --form 'stages=[{"op":"merge"},{"op":"remediate","profile":"PDF/A-2b"}]' -o merged.pdfA PDF/A conversion (/forms/pdfengines/convert in Gotenberg 8):
curl --request POST http://localhost:3000/forms/pdf/remediate --form files=@report.pdf --form profile=PDF/A-2b -o report-pdfa.pdfGotenberg’s upgrade guide maps every route, field and setting: gotenberg.dev/docs/getting-started/upgrade.
Gotenberg 8 and 9 on one server.
Marqius Kern answers both APIs on one server: Gotenberg 8’s /forms/pdfengines routes and Gotenberg 9’s /forms/pdf routes, each request in the version its route and fields belong to. Code written for 8 keeps working unchanged, and code written for 9 works beside it.
docker run --rm -d --name kern -p 3000:3000 marqius/kerncurl --retry 10 --retry-delay 1 --retry-all-errors http://localhost:3000/healthcurl --request POST http://localhost:3000/forms/pdfengines/merge --form files=@1-report.pdf --form files=@2-annex.pdf -o merged-8.pdfcurl --request POST http://localhost:3000/forms/pdf/merge --form files=@1-report.pdf --form files=@2-annex.pdf -o merged-9.pdfThe first merge is Gotenberg 8’s call, the second Gotenberg 9’s; both answer with the merged PDF. In a compose file, the switch is the image line: image: marqius/kern.
Gotenberg’s own tests run against it in public: 551 of Gotenberg 8.40.0’s 552 pass, and 495 of Gotenberg 9.10.3’s 540 with both APIs answered (see the scoreboard).
Free for open source. Licensed for business.
Personal, teaching and open-source use is free with a Community licence, including open-source projects’ CI runs and documentation builds.
- Get your free key on marqius.com/licence/marqius-kern, then sign in with Google.
- Tick “I’ll use Marqius Kern only for personal, teaching or open-source work”.
- Get my free key, then Copy key.
- Set it as the variable
MARQIUS_LICENCEon your server.
Anything done by or for a business, including internal tools and client work, needs a paid licence. See the plans and prices.
Questions
Why does Gotenberg answer 404 on /forms/pdfengines/merge?
Gotenberg 9 replaced the /forms/pdfengines routes with /forms/pdf routes. The old paths answer 404 and name the new route: /forms/pdfengines/merge became /forms/pdf/merge.
What replaced /forms/pdfengines/convert?
/forms/pdf/remediate, with the profile as a field, for example profile=PDF/A-2b. On the LibreOffice route, Gotenberg 9 renamed pdfa to nativePdfa.
How do I keep using Gotenberg 8?
Pin the image gotenberg/gotenberg:8 instead of latest. It is Gotenberg 8.40.0, the last 8.x release; Gotenberg gives security updates to its latest version only.
My client library or app sends Gotenberg 8 requests. What can I do?
Pin gotenberg/gotenberg:8, move to a version of the library that speaks Gotenberg 9 where one exists, or run a server that answers both versions.
Does Marqius Kern answer Gotenberg 8 and 9 requests?
Yes, on one server: Gotenberg 8’s /forms/pdfengines routes and Gotenberg 9’s /forms/pdf routes, each request in the version it belongs to.
Keep your Gotenberg 8 code.
Compare your own documents side by side first, as the switching guide shows, then switch.