The Marqius Kern API

Gotenberg 8 and 9 on one server, and new routes of its own

Marqius Kern API

OpenAPI 3.1.0 · Gotenberg 8.40.0 and 9.10.3, on one server · 68 operations, each with samples that run as printed

Server: {scheme}://{host}:{port} (scheme http, host localhost, port 3000) · Questions: hello@marqius.com

Download and run Marqius Kern

You need Docker. The commands run as printed on macOS, Linux and Windows (WSL).

  1. Download the image: 41 MB, for amd64 and arm64.

    docker pull marqius/kern
  2. Start it on Gotenberg's port, 3000, and wait until it answers.

    docker run --rm -d --name kern -p 3000:3000 marqius/kern
    curl -sS --fail --retry 10 --retry-delay 1 --retry-all-errors http://localhost:3000/health
  3. Make a first PDF from a web page. Every sample below now works as printed.

    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:3000/forms/chromium/convert/html
  4. Already on Gotenberg? Change one line in your compose file, Kubernetes manifest or docker run line. Port 3000, the gotenberg command and its flags, and your client library's settings all stay the same.

    - image: gotenberg/gotenberg:8
    + image: marqius/kern
  5. Stop it when you are done.

    docker stop kern

Free with a Community key for personal, teaching and open-source use: the switching guide shows how to set it as MARQIUS_LICENCE. A business needs a paid licence: see the plans.

The OpenAPI 3.1 document: YAML · JSON · Switching guide · Marqius Kern

Marqius Kern converts documents to PDF and works on PDFs, answering Gotenberg's API: 8.40.0's, and 9.10.3's beside it on the same server.

Getting started

Marqius Kern listens on port 3000. If you are reading this from a running server, it is ready: every operation's samples call http://localhost:3000 (put your server's address in its place). They are POSIX shell (macOS, Linux, WSL) and make their own inputs, so each one runs as printed.

Your first PDF:

printf '<!doctype html><html><body><h1>Hello</h1></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o hello.pdf

With no server at hand, marqius-kern run answers one request the same way, taking curl's form flags as they are:

marqius-kern run /forms/chromium/convert/html -F files=@index.html -o hello.pdf

What comes back

A file (a PDF, a picture, several as a ZIP) or JSON, with 200. A request that cannot be answered gets 4xx or 5xx and a plain-text message, in Gotenberg's words. Every answer carries the Gotenberg-Trace header, which finds the request in the server's log; X-Marqius-Kern-Note says what Marqius Kern did that you may want to know.

Gotenberg 8 and 9

Each request is answered in one of the two APIs. A /forms/pdf/ route, or a field only Gotenberg 9 reads (stages, paperSize, the native... names), makes it 9.x's; otherwise it is 8.x's, as Gotenberg 8.40.0 answers it. A server started with --kern-api=8 or --kern-api=9 answers one alone, and its document describes that one.

Reading this document

Each operation and field says whose API it is (x-kern-api: gotenberg-8.40.0, gotenberg-9.10.3, or kern for Marqius Kern's own, which change nothing unless a request uses them), and each field what Marqius Kern does with it (x-kern-effect: honoured; checked for a field Marqius Kern reads and checks, a wrong value refused in Gotenberg's words, but which changes nothing in its answer, as it tunes only Chromium or LibreOffice or the route does not use it; noted for one that does nothing on that route, which Marqius Kern says in its X-Marqius-Kern-Note header). The samples are each operation's x-codeSamples. The version is the API's, as GET /version answers it.

Chromium

HTML, web pages and Markdown to PDF or to pictures, laid out as Chromium prints them.

POST/forms/chromium/convert/htmlGotenberg 8Gotenberg 9

Convert HTML to PDF

Prints index.html, with the files it names, to PDF, laid out as Chromium prints it. Off with --chromium-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o hello.pdf
Form fields 100
filesfilesrequiredGotenberg 8

index.html and the files it names (stylesheets, pictures, fonts, scripts), each by its name alone. header.html and footer.html are printed in the top and bottom margins of every page (classes date, title, url, pageNumber and totalPages take those values); Marqius Kern's own header-first.html and footer-first.html stand in for them on the first page (an empty one: none there).

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

skipNetworkIdleEventbooleandefault trueGotenberg 8checked only

Prints without waiting for the network to go idle. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

skipNetworkAlmostIdleEventbooleandefault trueGotenberg 8checked only

Prints without waiting for the network to go almost idle. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

failOnHttpStatusCodesJSONdefault [499,599]Gotenberg 8

Answers 409 when the page itself answers one of these statuses: 499 stands for 400 to 499, 599 for 500 to 599.

failOnResourceHttpStatusCodesJSONGotenberg 8

Answers 409 when a file the page loads (a picture, a stylesheet, a script) answers one of these statuses; ranges as for failOnHttpStatusCodes.

ignoreResourceHttpStatusDomainsJSONGotenberg 8

Domains, their subdomains included, that failOnResourceHttpStatusCodes leaves out: ["sentry-cdn.com"].

failOnResourceLoadingFailedbooleandefault falseGotenberg 8

Answers 409 when a file the page loads cannot be fetched at all.

failOnConsoleExceptionsbooleandefault falseGotenberg 8

Answers 409 when the page's script throws an exception.

failOnConsoleMessageTypesJSONGotenberg 8

Answers 409 when the page writes one of these console types: log, debug, info, warning, error or assert.

waitDelaystringa duration: 500ms, 2s, 1m30sGotenberg 8

Waits this long once the page has loaded, before printing: 500ms, 2s.

waitForExpressionstringGotenberg 8

Waits until this JavaScript expression is true, such as window.ready === true.

waitForSelectorstringGotenberg 8

Waits until an element matching this CSS selector is on the page, such as #chart.ready.

cookiesJSONGotenberg 8

Cookies to set before the page loads: objects with a name, a value and a domain, and optionally a path, secure, httpOnly and sameSite (Strict, Lax or None).

userAgentstringGotenberg 8

The User-Agent header the page's requests send.

extraHttpHeadersJSONGotenberg 8

Headers the page's requests send: {"X-Token": "abc"}. A value ending in ;scope=<regex> is sent only to the addresses the regex matches.

emulatedMediaTypeprint | screendefault printGotenberg 8

The CSS media type the page is laid out for.

emulatedMediaFeaturesJSONGotenberg 8

CSS media features the page sees: {"prefers-color-scheme": "dark"}.

omitBackgroundbooleandefault falseGotenberg 8

Leaves out the white background, for a transparent page or picture; a PDF needs printBackground too.

landscapebooleandefault falseGotenberg 8

Prints the page on its side.

printBackgroundbooleandefault falseGotenberg 8

Prints the page's backgrounds; without it only what the page marks print-color-adjust: exact keeps them, as in Chromium.

scalenumberdefault 1.00.1 to 2Gotenberg 8

Draws the content this many times as big, from 0.1 to 2.

singlePagebooleandefault falseGotenberg 8

Prints the whole content on one page, as tall as the content.

paperWidthstringdefault 8.5a length: 8.5, 210mm, 8.27inGotenberg 8

The paper's width: inches, or a number with a unit (210mm, 21cm, 595pt, 794px).

paperHeightstringdefault 11a length: 8.5, 210mm, 8.27inGotenberg 8

The paper's height.

marginTopstringdefault 0.39a length: 8.5, 210mm, 8.27inGotenberg 8

The top margin; header.html prints in it.

marginBottomstringdefault 0.39a length: 8.5, 210mm, 8.27inGotenberg 8

The bottom margin; footer.html prints in it.

marginLeftstringdefault 0.39a length: 8.5, 210mm, 8.27inGotenberg 8

The left margin.

marginRightstringdefault 0.39a length: 8.5, 210mm, 8.27inGotenberg 8

The right margin.

preferCssPageSizebooleandefault falseGotenberg 8checked only

Gives the page's own CSS @page size priority over paperWidth and paperHeight. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

generateDocumentOutlinebooleandefault falseGotenberg 8

Makes bookmarks from the page's headings.

generateTaggedPdfbooleandefault falseGotenberg 8

Makes a tagged PDF, whose structure screen readers follow.

nativePageRangesstringGotenberg 8

The pages to print, in Chromium's syntax: 1-5, 8, 11-13.

splitModeintervals | pagesGotenberg 8

Splits the PDF: intervals into parts of splitSpan pages, pages into the pages splitSpan names. Several parts are answered as a ZIP.

splitSpanstringGotenberg 8

The pages of each part: a number of pages for intervals, page ranges (1-3, 5) for pages.

splitUnifybooleandefault falseGotenberg 8

With splitMode pages: the pages chosen in one PDF instead of one PDF each.

metadataJSONGotenberg 8

The PDF's metadata to write: {"Author": "…", "Title": "…", "Keywords": ["…"]}.

flattenbooleandefault falseGotenberg 8

Turns form fields and annotations into the page's own drawing.

userPasswordstringGotenberg 8

The password that opens the PDF.

ownerPasswordstringGotenberg 8

The password that lifts the PDF's restrictions.

allowPrintingbooleandefault trueGotenberg 8

With a password: printing allowed.

allowModifyingbooleandefault trueGotenberg 8

With a password: changes allowed.

allowCopyingbooleandefault trueGotenberg 8

With a password: copying text and pictures allowed.

allowAnnotatingbooleandefault trueGotenberg 8

With a password: comments allowed.

allowFillingFormsbooleandefault trueGotenberg 8

With a password: filling in forms allowed.

allowAssemblingbooleandefault trueGotenberg 8

With a password: inserting, rotating and deleting pages allowed.

stampfilesGotenberg 8

A picture or a PDF drawn over the pages (stampSource image or pdf).

stampSourcetext | image | pdfGotenberg 8

What the stamp is: text (stampExpression), or the picture or PDF sent as stamp.

stampExpressionstringGotenberg 8

The stamp's text, or the name of its file.

stampPagesstringGotenberg 8

The pages stamped: 1-3, 5; all when not given.

stampOptionsJSONGotenberg 8

How the stamp is drawn: {"font": "Helvetica", "fontSize": 24, "color": "#ff0000", "opacity": 0.5, "rotation": 45, "position": "center"}.

watermarkfilesGotenberg 8

A picture or a PDF drawn under the pages' content (watermarkSource image or pdf).

watermarkSourcetext | image | pdfGotenberg 8

What the watermark is: text (watermarkExpression), or the picture or PDF sent as watermark.

watermarkExpressionstringGotenberg 8

The watermark's text, or the name of its file.

watermarkPagesstringGotenberg 8

The pages watermarked: 1-3, 5; all when not given.

watermarkOptionsJSONGotenberg 8

How the watermark is drawn, as for stampOptions.

rotateAngle90 | 180 | 270Gotenberg 8

Turns the pages by this angle, clockwise.

rotatePagesstringGotenberg 8

With rotateAngle: the pages turned: 1-3, 5; all when not given.

optimizeImagesbooleandefault falseGotenberg 8

Packs the pictures again as JPEG, for a smaller file.

imageQualityinteger1 to 100Gotenberg 8

With optimizeImages: the JPEG quality, from 1 to 100.

kernOcrtrue | false | autodefault falseMarqius Kern

true (or auto): the pages that need it (scans: little text and a large picture) are read and laid over with hidden text, so the PDF can be searched and copied; the pages look as they did. The summary is in the X-Marqius-Kern-Ocr header.

kernOcrEnginestringMarqius Kern

The engine that reads: Marqius Kern's own (the server's --kern-ocr-engine unless sent: ppocr-v6-tiny; ppocr-v6-small reads more accurately), tesseract, a folder added with marqius-kern ocr add, or an OCR server's name (--kern-ocr-server).

kernOcrLanguagesstringMarqius Kern

The languages or scripts on the pages, comma-separated (ara, heb, hi, korean...): the default engine is swapped for Marqius Kern's engine that reads them.

kernOcrPagesstringMarqius Kern

The pages to read if they need it: 1-3,5, even, odd, !1; all unless sent.

kernOcrOptionalbooleandefault falseMarqius Kern

When OCR cannot run (no engine, a model not fetched yet), the file is answered as it is, with a note, instead of an error.

pdfaPDF/A-1b | PDF/A-2b | PDF/A-3bGotenberg 8

Makes the PDF this PDF/A level, for archiving.

pdfuabooleandefault falseGotenberg 8

Makes the PDF accessible (PDF/UA).

embedsfilesGotenberg 8

Files carried inside the PDF as attachments.

embedsMetadataJSONGotenberg 8

For each file carried inside, by its name: {"invoice.xml": {"mimeType": "text/xml", "relationship": "Data"}}.

facturxXmlfilesGotenberg 8

A Factur-X or ZUGFeRD invoice's XML: the PDF is made an e-invoice carrying it (PDF/A-3b).

facturxVersionstringdefault 1.0Gotenberg 8

The Factur-X version written in the PDF's metadata.

facturxConformanceLevelMINIMUM | BASIC WL | BASIC | EN 16931 | EXTENDED | XRECHNUNGGotenberg 8

The invoice XML's profile, when the XML does not say it.

facturxDocumentTypeINVOICE | ORDER | ORDER_RESPONSE | ORDER_CHANGEGotenberg 8

What the XML is.

kernBookFeaturesbooleanMarqius Kern

Prints what Chromium does not know: running headers (string-set, position: running()), page numbers in contents and cross-references (target-counter), leaders, footnotes (the server's --kern-book-features unless sent).

kernFitHeaderFooterbooleanMarqius Kern

A header.html or footer.html taller than its margin moves the page's text away rather than covering it (the server's --kern-fit-header-footer unless sent).

kernContentsbooleandefault falseMarqius Kern

A contents page at the front: the headings, each a link, with their page numbers.

kernContentsDepthintegerdefault 31 to 6Marqius Kern

With kernContents: the heading levels listed, 1 to 6.

kernContentsTitlestringdefault ContentsMarqius Kern

With kernContents: the contents page's title.

kernFirstPageNumberintegerdefault 1Marqius Kern

The number the first page is given; the rest count on from it.

kernFontReportbooleanMarqius Kern

Says in the X-Marqius-Kern-Fonts header which fonts each conversion used, their files, and what stood in for what (the server's --kern-font-report unless sent).

kernRequireFontsstringMarqius Kern

Families this request must have, comma-separated: a conversion that cannot have one is refused (409) instead of printed in another font.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

stagesJSONGotenberg 9

Operations run on the PDFs in order, each with its options as /forms/pdf's routes take them: a JSON array such as [{"op":"set-metadata","title":"Report"},{"op":"encrypt","userPassword":"open"}].

paperSizestringGotenberg 9

A paper by name, such as A4 or Letter, in place of paperWidth and paperHeight.

nativePagesstringGotenberg 9

The pages to print, in Chromium's syntax (1-5, 8, 11-13): Gotenberg 9's name for nativePageRanges.

nativeBookmarksbooleandefault falseGotenberg 9

Makes bookmarks from the page's headings: Gotenberg 9's name for generateDocumentOutline.

nativeTaggedPdfbooleandefault falseGotenberg 9

Makes a tagged PDF: Gotenberg 9's name for generateTaggedPdf.

waitForWindowStatusstringGotenberg 9

Waits until the page sets window.status to this value, before printing.

Answers 11
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 403 The address lists refuse an address the request makes the server fetch: Forbidden; the log says why.
  • 409 A failOn… check failed (the page or a file it loads answered an error, the console said what the request refuses), or a font the request requires is missing.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --chromium-disable-routes.

POST/forms/chromium/convert/urlGotenberg 8Gotenberg 9

Convert a web page to PDF

Prints the page at a web address to PDF, laid out as Chromium prints it. Off with --chromium-disable-routes.

curl http://localhost:3000/forms/chromium/convert/url -F url=https://example.com -o example.pdf
Form fields 101
urlstringrequiredan addressGotenberg 8

The address of the page to print: http or https.

filesfilesGotenberg 8

header.html and footer.html, and the files they name; Marqius Kern's own header-first.html and footer-first.html stand in for them on the first page.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

skipNetworkIdleEventbooleandefault trueGotenberg 8checked only

Prints without waiting for the network to go idle. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

skipNetworkAlmostIdleEventbooleandefault trueGotenberg 8checked only

Prints without waiting for the network to go almost idle. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

failOnHttpStatusCodesJSONdefault [499,599]Gotenberg 8

Answers 409 when the page itself answers one of these statuses: 499 stands for 400 to 499, 599 for 500 to 599.

failOnResourceHttpStatusCodesJSONGotenberg 8

Answers 409 when a file the page loads (a picture, a stylesheet, a script) answers one of these statuses; ranges as for failOnHttpStatusCodes.

ignoreResourceHttpStatusDomainsJSONGotenberg 8

Domains, their subdomains included, that failOnResourceHttpStatusCodes leaves out: ["sentry-cdn.com"].

failOnResourceLoadingFailedbooleandefault falseGotenberg 8

Answers 409 when a file the page loads cannot be fetched at all.

failOnConsoleExceptionsbooleandefault falseGotenberg 8

Answers 409 when the page's script throws an exception.

failOnConsoleMessageTypesJSONGotenberg 8

Answers 409 when the page writes one of these console types: log, debug, info, warning, error or assert.

waitDelaystringa duration: 500ms, 2s, 1m30sGotenberg 8

Waits this long once the page has loaded, before printing: 500ms, 2s.

waitForExpressionstringGotenberg 8

Waits until this JavaScript expression is true, such as window.ready === true.

waitForSelectorstringGotenberg 8

Waits until an element matching this CSS selector is on the page, such as #chart.ready.

cookiesJSONGotenberg 8

Cookies to set before the page loads: objects with a name, a value and a domain, and optionally a path, secure, httpOnly and sameSite (Strict, Lax or None).

userAgentstringGotenberg 8

The User-Agent header the page's requests send.

extraHttpHeadersJSONGotenberg 8

Headers the page's requests send: {"X-Token": "abc"}. A value ending in ;scope=<regex> is sent only to the addresses the regex matches.

emulatedMediaTypeprint | screendefault printGotenberg 8

The CSS media type the page is laid out for.

emulatedMediaFeaturesJSONGotenberg 8

CSS media features the page sees: {"prefers-color-scheme": "dark"}.

omitBackgroundbooleandefault falseGotenberg 8

Leaves out the white background, for a transparent page or picture; a PDF needs printBackground too.

landscapebooleandefault falseGotenberg 8

Prints the page on its side.

printBackgroundbooleandefault falseGotenberg 8

Prints the page's backgrounds; without it only what the page marks print-color-adjust: exact keeps them, as in Chromium.

scalenumberdefault 1.00.1 to 2Gotenberg 8

Draws the content this many times as big, from 0.1 to 2.

singlePagebooleandefault falseGotenberg 8

Prints the whole content on one page, as tall as the content.

paperWidthstringdefault 8.5a length: 8.5, 210mm, 8.27inGotenberg 8

The paper's width: inches, or a number with a unit (210mm, 21cm, 595pt, 794px).

paperHeightstringdefault 11a length: 8.5, 210mm, 8.27inGotenberg 8

The paper's height.

marginTopstringdefault 0.39a length: 8.5, 210mm, 8.27inGotenberg 8

The top margin; header.html prints in it.

marginBottomstringdefault 0.39a length: 8.5, 210mm, 8.27inGotenberg 8

The bottom margin; footer.html prints in it.

marginLeftstringdefault 0.39a length: 8.5, 210mm, 8.27inGotenberg 8

The left margin.

marginRightstringdefault 0.39a length: 8.5, 210mm, 8.27inGotenberg 8

The right margin.

preferCssPageSizebooleandefault falseGotenberg 8checked only

Gives the page's own CSS @page size priority over paperWidth and paperHeight. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

generateDocumentOutlinebooleandefault falseGotenberg 8

Makes bookmarks from the page's headings.

generateTaggedPdfbooleandefault falseGotenberg 8

Makes a tagged PDF, whose structure screen readers follow.

nativePageRangesstringGotenberg 8

The pages to print, in Chromium's syntax: 1-5, 8, 11-13.

splitModeintervals | pagesGotenberg 8

Splits the PDF: intervals into parts of splitSpan pages, pages into the pages splitSpan names. Several parts are answered as a ZIP.

splitSpanstringGotenberg 8

The pages of each part: a number of pages for intervals, page ranges (1-3, 5) for pages.

splitUnifybooleandefault falseGotenberg 8

With splitMode pages: the pages chosen in one PDF instead of one PDF each.

metadataJSONGotenberg 8

The PDF's metadata to write: {"Author": "…", "Title": "…", "Keywords": ["…"]}.

flattenbooleandefault falseGotenberg 8

Turns form fields and annotations into the page's own drawing.

userPasswordstringGotenberg 8

The password that opens the PDF.

ownerPasswordstringGotenberg 8

The password that lifts the PDF's restrictions.

allowPrintingbooleandefault trueGotenberg 8

With a password: printing allowed.

allowModifyingbooleandefault trueGotenberg 8

With a password: changes allowed.

allowCopyingbooleandefault trueGotenberg 8

With a password: copying text and pictures allowed.

allowAnnotatingbooleandefault trueGotenberg 8

With a password: comments allowed.

allowFillingFormsbooleandefault trueGotenberg 8

With a password: filling in forms allowed.

allowAssemblingbooleandefault trueGotenberg 8

With a password: inserting, rotating and deleting pages allowed.

stampfilesGotenberg 8

A picture or a PDF drawn over the pages (stampSource image or pdf).

stampSourcetext | image | pdfGotenberg 8

What the stamp is: text (stampExpression), or the picture or PDF sent as stamp.

stampExpressionstringGotenberg 8

The stamp's text, or the name of its file.

stampPagesstringGotenberg 8

The pages stamped: 1-3, 5; all when not given.

stampOptionsJSONGotenberg 8

How the stamp is drawn: {"font": "Helvetica", "fontSize": 24, "color": "#ff0000", "opacity": 0.5, "rotation": 45, "position": "center"}.

watermarkfilesGotenberg 8

A picture or a PDF drawn under the pages' content (watermarkSource image or pdf).

watermarkSourcetext | image | pdfGotenberg 8

What the watermark is: text (watermarkExpression), or the picture or PDF sent as watermark.

watermarkExpressionstringGotenberg 8

The watermark's text, or the name of its file.

watermarkPagesstringGotenberg 8

The pages watermarked: 1-3, 5; all when not given.

watermarkOptionsJSONGotenberg 8

How the watermark is drawn, as for stampOptions.

rotateAngle90 | 180 | 270Gotenberg 8

Turns the pages by this angle, clockwise.

rotatePagesstringGotenberg 8

With rotateAngle: the pages turned: 1-3, 5; all when not given.

optimizeImagesbooleandefault falseGotenberg 8

Packs the pictures again as JPEG, for a smaller file.

imageQualityinteger1 to 100Gotenberg 8

With optimizeImages: the JPEG quality, from 1 to 100.

kernOcrtrue | false | autodefault falseMarqius Kern

true (or auto): the pages that need it (scans: little text and a large picture) are read and laid over with hidden text, so the PDF can be searched and copied; the pages look as they did. The summary is in the X-Marqius-Kern-Ocr header.

kernOcrEnginestringMarqius Kern

The engine that reads: Marqius Kern's own (the server's --kern-ocr-engine unless sent: ppocr-v6-tiny; ppocr-v6-small reads more accurately), tesseract, a folder added with marqius-kern ocr add, or an OCR server's name (--kern-ocr-server).

kernOcrLanguagesstringMarqius Kern

The languages or scripts on the pages, comma-separated (ara, heb, hi, korean...): the default engine is swapped for Marqius Kern's engine that reads them.

kernOcrPagesstringMarqius Kern

The pages to read if they need it: 1-3,5, even, odd, !1; all unless sent.

kernOcrOptionalbooleandefault falseMarqius Kern

When OCR cannot run (no engine, a model not fetched yet), the file is answered as it is, with a note, instead of an error.

pdfaPDF/A-1b | PDF/A-2b | PDF/A-3bGotenberg 8

Makes the PDF this PDF/A level, for archiving.

pdfuabooleandefault falseGotenberg 8

Makes the PDF accessible (PDF/UA).

embedsfilesGotenberg 8

Files carried inside the PDF as attachments.

embedsMetadataJSONGotenberg 8

For each file carried inside, by its name: {"invoice.xml": {"mimeType": "text/xml", "relationship": "Data"}}.

facturxXmlfilesGotenberg 8

A Factur-X or ZUGFeRD invoice's XML: the PDF is made an e-invoice carrying it (PDF/A-3b).

facturxVersionstringdefault 1.0Gotenberg 8

The Factur-X version written in the PDF's metadata.

facturxConformanceLevelMINIMUM | BASIC WL | BASIC | EN 16931 | EXTENDED | XRECHNUNGGotenberg 8

The invoice XML's profile, when the XML does not say it.

facturxDocumentTypeINVOICE | ORDER | ORDER_RESPONSE | ORDER_CHANGEGotenberg 8

What the XML is.

kernBookFeaturesbooleanMarqius Kern

Prints what Chromium does not know: running headers (string-set, position: running()), page numbers in contents and cross-references (target-counter), leaders, footnotes (the server's --kern-book-features unless sent).

kernFitHeaderFooterbooleanMarqius Kern

A header.html or footer.html taller than its margin moves the page's text away rather than covering it (the server's --kern-fit-header-footer unless sent).

kernContentsbooleandefault falseMarqius Kern

A contents page at the front: the headings, each a link, with their page numbers.

kernContentsDepthintegerdefault 31 to 6Marqius Kern

With kernContents: the heading levels listed, 1 to 6.

kernContentsTitlestringdefault ContentsMarqius Kern

With kernContents: the contents page's title.

kernFirstPageNumberintegerdefault 1Marqius Kern

The number the first page is given; the rest count on from it.

kernFontReportbooleanMarqius Kern

Says in the X-Marqius-Kern-Fonts header which fonts each conversion used, their files, and what stood in for what (the server's --kern-font-report unless sent).

kernRequireFontsstringMarqius Kern

Families this request must have, comma-separated: a conversion that cannot have one is refused (409) instead of printed in another font.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

stagesJSONGotenberg 9

Operations run on the PDFs in order, each with its options as /forms/pdf's routes take them: a JSON array such as [{"op":"set-metadata","title":"Report"},{"op":"encrypt","userPassword":"open"}].

paperSizestringGotenberg 9

A paper by name, such as A4 or Letter, in place of paperWidth and paperHeight.

nativePagesstringGotenberg 9

The pages to print, in Chromium's syntax (1-5, 8, 11-13): Gotenberg 9's name for nativePageRanges.

nativeBookmarksbooleandefault falseGotenberg 9

Makes bookmarks from the page's headings: Gotenberg 9's name for generateDocumentOutline.

nativeTaggedPdfbooleandefault falseGotenberg 9

Makes a tagged PDF: Gotenberg 9's name for generateTaggedPdf.

waitForWindowStatusstringGotenberg 9

Waits until the page sets window.status to this value, before printing.

Answers 11
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 403 The address lists refuse an address the request makes the server fetch: Forbidden; the log says why.
  • 409 A failOn… check failed (the page or a file it loads answered an error, the console said what the request refuses), or a font the request requires is missing.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --chromium-disable-routes.

POST/forms/chromium/convert/markdownGotenberg 8Gotenberg 9

Convert Markdown to PDF

Prints Markdown files, placed in index.html, to PDF. Off with --chromium-disable-routes.

printf '<!doctype html><html><body>{{ toHTML "notes.md" }}</body></html>' > index.html
printf '# Notes\n\n- Agreed on Monday\n- Ships on Friday\n' > notes.md
curl http://localhost:3000/forms/chromium/convert/markdown -F files=@index.html -F files=@notes.md -o notes.pdf
Form fields 100
filesfilesrequiredGotenberg 8

index.html, which places each Markdown file with {{ toHTML "file.md" }}, the .md files, and the files the page names; header.html and footer.html as on the HTML route.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

skipNetworkIdleEventbooleandefault trueGotenberg 8checked only

Prints without waiting for the network to go idle. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

skipNetworkAlmostIdleEventbooleandefault trueGotenberg 8checked only

Prints without waiting for the network to go almost idle. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

failOnHttpStatusCodesJSONdefault [499,599]Gotenberg 8

Answers 409 when the page itself answers one of these statuses: 499 stands for 400 to 499, 599 for 500 to 599.

failOnResourceHttpStatusCodesJSONGotenberg 8

Answers 409 when a file the page loads (a picture, a stylesheet, a script) answers one of these statuses; ranges as for failOnHttpStatusCodes.

ignoreResourceHttpStatusDomainsJSONGotenberg 8

Domains, their subdomains included, that failOnResourceHttpStatusCodes leaves out: ["sentry-cdn.com"].

failOnResourceLoadingFailedbooleandefault falseGotenberg 8

Answers 409 when a file the page loads cannot be fetched at all.

failOnConsoleExceptionsbooleandefault falseGotenberg 8

Answers 409 when the page's script throws an exception.

failOnConsoleMessageTypesJSONGotenberg 8

Answers 409 when the page writes one of these console types: log, debug, info, warning, error or assert.

waitDelaystringa duration: 500ms, 2s, 1m30sGotenberg 8

Waits this long once the page has loaded, before printing: 500ms, 2s.

waitForExpressionstringGotenberg 8

Waits until this JavaScript expression is true, such as window.ready === true.

waitForSelectorstringGotenberg 8

Waits until an element matching this CSS selector is on the page, such as #chart.ready.

cookiesJSONGotenberg 8

Cookies to set before the page loads: objects with a name, a value and a domain, and optionally a path, secure, httpOnly and sameSite (Strict, Lax or None).

userAgentstringGotenberg 8

The User-Agent header the page's requests send.

extraHttpHeadersJSONGotenberg 8

Headers the page's requests send: {"X-Token": "abc"}. A value ending in ;scope=<regex> is sent only to the addresses the regex matches.

emulatedMediaTypeprint | screendefault printGotenberg 8

The CSS media type the page is laid out for.

emulatedMediaFeaturesJSONGotenberg 8

CSS media features the page sees: {"prefers-color-scheme": "dark"}.

omitBackgroundbooleandefault falseGotenberg 8

Leaves out the white background, for a transparent page or picture; a PDF needs printBackground too.

landscapebooleandefault falseGotenberg 8

Prints the page on its side.

printBackgroundbooleandefault falseGotenberg 8

Prints the page's backgrounds; without it only what the page marks print-color-adjust: exact keeps them, as in Chromium.

scalenumberdefault 1.00.1 to 2Gotenberg 8

Draws the content this many times as big, from 0.1 to 2.

singlePagebooleandefault falseGotenberg 8

Prints the whole content on one page, as tall as the content.

paperWidthstringdefault 8.5a length: 8.5, 210mm, 8.27inGotenberg 8

The paper's width: inches, or a number with a unit (210mm, 21cm, 595pt, 794px).

paperHeightstringdefault 11a length: 8.5, 210mm, 8.27inGotenberg 8

The paper's height.

marginTopstringdefault 0.39a length: 8.5, 210mm, 8.27inGotenberg 8

The top margin; header.html prints in it.

marginBottomstringdefault 0.39a length: 8.5, 210mm, 8.27inGotenberg 8

The bottom margin; footer.html prints in it.

marginLeftstringdefault 0.39a length: 8.5, 210mm, 8.27inGotenberg 8

The left margin.

marginRightstringdefault 0.39a length: 8.5, 210mm, 8.27inGotenberg 8

The right margin.

preferCssPageSizebooleandefault falseGotenberg 8checked only

Gives the page's own CSS @page size priority over paperWidth and paperHeight. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

generateDocumentOutlinebooleandefault falseGotenberg 8

Makes bookmarks from the page's headings.

generateTaggedPdfbooleandefault falseGotenberg 8

Makes a tagged PDF, whose structure screen readers follow.

nativePageRangesstringGotenberg 8

The pages to print, in Chromium's syntax: 1-5, 8, 11-13.

splitModeintervals | pagesGotenberg 8

Splits the PDF: intervals into parts of splitSpan pages, pages into the pages splitSpan names. Several parts are answered as a ZIP.

splitSpanstringGotenberg 8

The pages of each part: a number of pages for intervals, page ranges (1-3, 5) for pages.

splitUnifybooleandefault falseGotenberg 8

With splitMode pages: the pages chosen in one PDF instead of one PDF each.

metadataJSONGotenberg 8

The PDF's metadata to write: {"Author": "…", "Title": "…", "Keywords": ["…"]}.

flattenbooleandefault falseGotenberg 8

Turns form fields and annotations into the page's own drawing.

userPasswordstringGotenberg 8

The password that opens the PDF.

ownerPasswordstringGotenberg 8

The password that lifts the PDF's restrictions.

allowPrintingbooleandefault trueGotenberg 8

With a password: printing allowed.

allowModifyingbooleandefault trueGotenberg 8

With a password: changes allowed.

allowCopyingbooleandefault trueGotenberg 8

With a password: copying text and pictures allowed.

allowAnnotatingbooleandefault trueGotenberg 8

With a password: comments allowed.

allowFillingFormsbooleandefault trueGotenberg 8

With a password: filling in forms allowed.

allowAssemblingbooleandefault trueGotenberg 8

With a password: inserting, rotating and deleting pages allowed.

stampfilesGotenberg 8

A picture or a PDF drawn over the pages (stampSource image or pdf).

stampSourcetext | image | pdfGotenberg 8

What the stamp is: text (stampExpression), or the picture or PDF sent as stamp.

stampExpressionstringGotenberg 8

The stamp's text, or the name of its file.

stampPagesstringGotenberg 8

The pages stamped: 1-3, 5; all when not given.

stampOptionsJSONGotenberg 8

How the stamp is drawn: {"font": "Helvetica", "fontSize": 24, "color": "#ff0000", "opacity": 0.5, "rotation": 45, "position": "center"}.

watermarkfilesGotenberg 8

A picture or a PDF drawn under the pages' content (watermarkSource image or pdf).

watermarkSourcetext | image | pdfGotenberg 8

What the watermark is: text (watermarkExpression), or the picture or PDF sent as watermark.

watermarkExpressionstringGotenberg 8

The watermark's text, or the name of its file.

watermarkPagesstringGotenberg 8

The pages watermarked: 1-3, 5; all when not given.

watermarkOptionsJSONGotenberg 8

How the watermark is drawn, as for stampOptions.

rotateAngle90 | 180 | 270Gotenberg 8

Turns the pages by this angle, clockwise.

rotatePagesstringGotenberg 8

With rotateAngle: the pages turned: 1-3, 5; all when not given.

optimizeImagesbooleandefault falseGotenberg 8

Packs the pictures again as JPEG, for a smaller file.

imageQualityinteger1 to 100Gotenberg 8

With optimizeImages: the JPEG quality, from 1 to 100.

kernOcrtrue | false | autodefault falseMarqius Kern

true (or auto): the pages that need it (scans: little text and a large picture) are read and laid over with hidden text, so the PDF can be searched and copied; the pages look as they did. The summary is in the X-Marqius-Kern-Ocr header.

kernOcrEnginestringMarqius Kern

The engine that reads: Marqius Kern's own (the server's --kern-ocr-engine unless sent: ppocr-v6-tiny; ppocr-v6-small reads more accurately), tesseract, a folder added with marqius-kern ocr add, or an OCR server's name (--kern-ocr-server).

kernOcrLanguagesstringMarqius Kern

The languages or scripts on the pages, comma-separated (ara, heb, hi, korean...): the default engine is swapped for Marqius Kern's engine that reads them.

kernOcrPagesstringMarqius Kern

The pages to read if they need it: 1-3,5, even, odd, !1; all unless sent.

kernOcrOptionalbooleandefault falseMarqius Kern

When OCR cannot run (no engine, a model not fetched yet), the file is answered as it is, with a note, instead of an error.

pdfaPDF/A-1b | PDF/A-2b | PDF/A-3bGotenberg 8

Makes the PDF this PDF/A level, for archiving.

pdfuabooleandefault falseGotenberg 8

Makes the PDF accessible (PDF/UA).

embedsfilesGotenberg 8

Files carried inside the PDF as attachments.

embedsMetadataJSONGotenberg 8

For each file carried inside, by its name: {"invoice.xml": {"mimeType": "text/xml", "relationship": "Data"}}.

facturxXmlfilesGotenberg 8

A Factur-X or ZUGFeRD invoice's XML: the PDF is made an e-invoice carrying it (PDF/A-3b).

facturxVersionstringdefault 1.0Gotenberg 8

The Factur-X version written in the PDF's metadata.

facturxConformanceLevelMINIMUM | BASIC WL | BASIC | EN 16931 | EXTENDED | XRECHNUNGGotenberg 8

The invoice XML's profile, when the XML does not say it.

facturxDocumentTypeINVOICE | ORDER | ORDER_RESPONSE | ORDER_CHANGEGotenberg 8

What the XML is.

kernBookFeaturesbooleanMarqius Kern

Prints what Chromium does not know: running headers (string-set, position: running()), page numbers in contents and cross-references (target-counter), leaders, footnotes (the server's --kern-book-features unless sent).

kernFitHeaderFooterbooleanMarqius Kern

A header.html or footer.html taller than its margin moves the page's text away rather than covering it (the server's --kern-fit-header-footer unless sent).

kernContentsbooleandefault falseMarqius Kern

A contents page at the front: the headings, each a link, with their page numbers.

kernContentsDepthintegerdefault 31 to 6Marqius Kern

With kernContents: the heading levels listed, 1 to 6.

kernContentsTitlestringdefault ContentsMarqius Kern

With kernContents: the contents page's title.

kernFirstPageNumberintegerdefault 1Marqius Kern

The number the first page is given; the rest count on from it.

kernFontReportbooleanMarqius Kern

Says in the X-Marqius-Kern-Fonts header which fonts each conversion used, their files, and what stood in for what (the server's --kern-font-report unless sent).

kernRequireFontsstringMarqius Kern

Families this request must have, comma-separated: a conversion that cannot have one is refused (409) instead of printed in another font.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

stagesJSONGotenberg 9

Operations run on the PDFs in order, each with its options as /forms/pdf's routes take them: a JSON array such as [{"op":"set-metadata","title":"Report"},{"op":"encrypt","userPassword":"open"}].

paperSizestringGotenberg 9

A paper by name, such as A4 or Letter, in place of paperWidth and paperHeight.

nativePagesstringGotenberg 9

The pages to print, in Chromium's syntax (1-5, 8, 11-13): Gotenberg 9's name for nativePageRanges.

nativeBookmarksbooleandefault falseGotenberg 9

Makes bookmarks from the page's headings: Gotenberg 9's name for generateDocumentOutline.

nativeTaggedPdfbooleandefault falseGotenberg 9

Makes a tagged PDF: Gotenberg 9's name for generateTaggedPdf.

waitForWindowStatusstringGotenberg 9

Waits until the page sets window.status to this value, before printing.

Answers 11
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 403 The address lists refuse an address the request makes the server fetch: Forbidden; the log says why.
  • 409 A failOn… check failed (the page or a file it loads answered an error, the console said what the request refuses), or a font the request requires is missing.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --chromium-disable-routes.

POST/forms/chromium/screenshot/htmlGotenberg 8Gotenberg 9

Take a picture of HTML

A picture of index.html, with the files it names. Off with --chromium-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/screenshot/html -F files=@index.html -o hello.png
Form fields 44
filesfilesrequiredGotenberg 8

index.html and the files it names (stylesheets, pictures, fonts, scripts), each by its name alone. header.html and footer.html are printed in the top and bottom margins of every page (classes date, title, url, pageNumber and totalPages take those values); Marqius Kern's own header-first.html and footer-first.html stand in for them on the first page (an empty one: none there).

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

skipNetworkIdleEventbooleandefault trueGotenberg 8checked only

Prints without waiting for the network to go idle. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

skipNetworkAlmostIdleEventbooleandefault trueGotenberg 8checked only

Prints without waiting for the network to go almost idle. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

failOnHttpStatusCodesJSONdefault [499,599]Gotenberg 8

Answers 409 when the page itself answers one of these statuses: 499 stands for 400 to 499, 599 for 500 to 599.

failOnResourceHttpStatusCodesJSONGotenberg 8

Answers 409 when a file the page loads (a picture, a stylesheet, a script) answers one of these statuses; ranges as for failOnHttpStatusCodes.

ignoreResourceHttpStatusDomainsJSONGotenberg 8

Domains, their subdomains included, that failOnResourceHttpStatusCodes leaves out: ["sentry-cdn.com"].

failOnResourceLoadingFailedbooleandefault falseGotenberg 8

Answers 409 when a file the page loads cannot be fetched at all.

failOnConsoleExceptionsbooleandefault falseGotenberg 8

Answers 409 when the page's script throws an exception.

failOnConsoleMessageTypesJSONGotenberg 8

Answers 409 when the page writes one of these console types: log, debug, info, warning, error or assert.

waitDelaystringa duration: 500ms, 2s, 1m30sGotenberg 8

Waits this long once the page has loaded, before printing: 500ms, 2s.

waitForExpressionstringGotenberg 8

Waits until this JavaScript expression is true, such as window.ready === true.

waitForSelectorstringGotenberg 8

Waits until an element matching this CSS selector is on the page, such as #chart.ready.

cookiesJSONGotenberg 8

Cookies to set before the page loads: objects with a name, a value and a domain, and optionally a path, secure, httpOnly and sameSite (Strict, Lax or None).

userAgentstringGotenberg 8

The User-Agent header the page's requests send.

extraHttpHeadersJSONGotenberg 8

Headers the page's requests send: {"X-Token": "abc"}. A value ending in ;scope=<regex> is sent only to the addresses the regex matches.

emulatedMediaTypeprint | screendefault printGotenberg 8

The CSS media type the page is laid out for.

emulatedMediaFeaturesJSONGotenberg 8

CSS media features the page sees: {"prefers-color-scheme": "dark"}.

omitBackgroundbooleandefault falseGotenberg 8

Leaves out the white background, for a transparent page or picture; a PDF needs printBackground too.

widthintegerdefault 800Gotenberg 8

The window's width in pixels.

heightintegerdefault 600Gotenberg 8

The window's height in pixels.

clipbooleandefault falseGotenberg 8

Takes the window alone, not the whole page.

selectorstringGotenberg 8

Takes the first element matching this CSS selector alone.

formatpng | jpeg | webpdefault pngGotenberg 8

The picture's format (Marqius Kern's --kern-screenshot-format sets another default for the server).

qualityintegerdefault 1000 to 100Gotenberg 8

JPEG and WebP quality, from 0 to 100.

optimizeForSpeedbooleandefault falseGotenberg 8checked only

Lets Chromium compress faster and larger. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

deviceScaleFactornumberdefault 1.0Gotenberg 8

Pixels per CSS pixel: 2 takes a picture twice as wide and tall.

kernBookFeaturesbooleanMarqius Kern

Prints what Chromium does not know: running headers (string-set, position: running()), page numbers in contents and cross-references (target-counter), leaders, footnotes (the server's --kern-book-features unless sent).

kernFontReportbooleanMarqius Kern

Says in the X-Marqius-Kern-Fonts header which fonts each conversion used, their files, and what stood in for what (the server's --kern-font-report unless sent).

kernRequireFontsstringMarqius Kern

Families this request must have, comma-separated: a conversion that cannot have one is refused (409) instead of printed in another font.

kernSignbooleanMarqius Kerndoes nothing here

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignCertificatestringMarqius Kerndoes nothing here

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignKeystringMarqius Kerndoes nothing here

With a PEM certificate that holds no key: the name of the file sent with the key. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignCertificatePasswordstringMarqius Kerndoes nothing here

Opens the store or the key; never logged, never echoed. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignReasonstringMarqius Kerndoes nothing here

The reason the signature gives (the server's --kern-sign-reason unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignLocationstringMarqius Kerndoes nothing here

Where the signature says it was made (the server's --kern-sign-location unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignContactInfostringMarqius Kerndoes nothing here

How to reach the signer (the server's --kern-sign-contact-info unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignNamestringMarqius Kerndoes nothing here

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignPadesbooleandefault trueMarqius Kerndoes nothing here

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignTimestampUrlstringan addressMarqius Kerndoes nothing here

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignFieldstringMarqius Kerndoes nothing here

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignBoxstringMarqius Kerndoes nothing here

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernTimestampUrlstringan addressMarqius Kerndoes nothing here

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

waitForWindowStatusstringGotenberg 9

Waits until the page sets window.status to this value, before the picture is taken.

Answers 11
  • 200 The picture: PNG, JPEG or WebP, as format asks; several as a ZIP. image/png, image/jpeg, image/webp, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 403 The address lists refuse an address the request makes the server fetch: Forbidden; the log says why.
  • 409 A failOn… check failed (the page or a file it loads answered an error, the console said what the request refuses), or a font the request requires is missing.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --chromium-disable-routes.

POST/forms/chromium/screenshot/urlGotenberg 8Gotenberg 9

Take a picture of a web page

A picture of the page at a web address. Off with --chromium-disable-routes.

curl http://localhost:3000/forms/chromium/screenshot/url -F url=https://example.com -o example.png
Form fields 45
urlstringrequiredan addressGotenberg 8

The address of the page to print: http or https.

filesfilesGotenberg 8

header.html and footer.html, and the files they name; Marqius Kern's own header-first.html and footer-first.html stand in for them on the first page.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

skipNetworkIdleEventbooleandefault trueGotenberg 8checked only

Prints without waiting for the network to go idle. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

skipNetworkAlmostIdleEventbooleandefault trueGotenberg 8checked only

Prints without waiting for the network to go almost idle. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

failOnHttpStatusCodesJSONdefault [499,599]Gotenberg 8

Answers 409 when the page itself answers one of these statuses: 499 stands for 400 to 499, 599 for 500 to 599.

failOnResourceHttpStatusCodesJSONGotenberg 8

Answers 409 when a file the page loads (a picture, a stylesheet, a script) answers one of these statuses; ranges as for failOnHttpStatusCodes.

ignoreResourceHttpStatusDomainsJSONGotenberg 8

Domains, their subdomains included, that failOnResourceHttpStatusCodes leaves out: ["sentry-cdn.com"].

failOnResourceLoadingFailedbooleandefault falseGotenberg 8

Answers 409 when a file the page loads cannot be fetched at all.

failOnConsoleExceptionsbooleandefault falseGotenberg 8

Answers 409 when the page's script throws an exception.

failOnConsoleMessageTypesJSONGotenberg 8

Answers 409 when the page writes one of these console types: log, debug, info, warning, error or assert.

waitDelaystringa duration: 500ms, 2s, 1m30sGotenberg 8

Waits this long once the page has loaded, before printing: 500ms, 2s.

waitForExpressionstringGotenberg 8

Waits until this JavaScript expression is true, such as window.ready === true.

waitForSelectorstringGotenberg 8

Waits until an element matching this CSS selector is on the page, such as #chart.ready.

cookiesJSONGotenberg 8

Cookies to set before the page loads: objects with a name, a value and a domain, and optionally a path, secure, httpOnly and sameSite (Strict, Lax or None).

userAgentstringGotenberg 8

The User-Agent header the page's requests send.

extraHttpHeadersJSONGotenberg 8

Headers the page's requests send: {"X-Token": "abc"}. A value ending in ;scope=<regex> is sent only to the addresses the regex matches.

emulatedMediaTypeprint | screendefault printGotenberg 8

The CSS media type the page is laid out for.

emulatedMediaFeaturesJSONGotenberg 8

CSS media features the page sees: {"prefers-color-scheme": "dark"}.

omitBackgroundbooleandefault falseGotenberg 8

Leaves out the white background, for a transparent page or picture; a PDF needs printBackground too.

widthintegerdefault 800Gotenberg 8

The window's width in pixels.

heightintegerdefault 600Gotenberg 8

The window's height in pixels.

clipbooleandefault falseGotenberg 8

Takes the window alone, not the whole page.

selectorstringGotenberg 8

Takes the first element matching this CSS selector alone.

formatpng | jpeg | webpdefault pngGotenberg 8

The picture's format (Marqius Kern's --kern-screenshot-format sets another default for the server).

qualityintegerdefault 1000 to 100Gotenberg 8

JPEG and WebP quality, from 0 to 100.

optimizeForSpeedbooleandefault falseGotenberg 8checked only

Lets Chromium compress faster and larger. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

deviceScaleFactornumberdefault 1.0Gotenberg 8

Pixels per CSS pixel: 2 takes a picture twice as wide and tall.

kernBookFeaturesbooleanMarqius Kern

Prints what Chromium does not know: running headers (string-set, position: running()), page numbers in contents and cross-references (target-counter), leaders, footnotes (the server's --kern-book-features unless sent).

kernFontReportbooleanMarqius Kern

Says in the X-Marqius-Kern-Fonts header which fonts each conversion used, their files, and what stood in for what (the server's --kern-font-report unless sent).

kernRequireFontsstringMarqius Kern

Families this request must have, comma-separated: a conversion that cannot have one is refused (409) instead of printed in another font.

kernSignbooleanMarqius Kerndoes nothing here

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignCertificatestringMarqius Kerndoes nothing here

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignKeystringMarqius Kerndoes nothing here

With a PEM certificate that holds no key: the name of the file sent with the key. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignCertificatePasswordstringMarqius Kerndoes nothing here

Opens the store or the key; never logged, never echoed. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignReasonstringMarqius Kerndoes nothing here

The reason the signature gives (the server's --kern-sign-reason unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignLocationstringMarqius Kerndoes nothing here

Where the signature says it was made (the server's --kern-sign-location unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignContactInfostringMarqius Kerndoes nothing here

How to reach the signer (the server's --kern-sign-contact-info unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignNamestringMarqius Kerndoes nothing here

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignPadesbooleandefault trueMarqius Kerndoes nothing here

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignTimestampUrlstringan addressMarqius Kerndoes nothing here

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignFieldstringMarqius Kerndoes nothing here

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignBoxstringMarqius Kerndoes nothing here

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernTimestampUrlstringan addressMarqius Kerndoes nothing here

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

waitForWindowStatusstringGotenberg 9

Waits until the page sets window.status to this value, before the picture is taken.

Answers 11
  • 200 The picture: PNG, JPEG or WebP, as format asks; several as a ZIP. image/png, image/jpeg, image/webp, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 403 The address lists refuse an address the request makes the server fetch: Forbidden; the log says why.
  • 409 A failOn… check failed (the page or a file it loads answered an error, the console said what the request refuses), or a font the request requires is missing.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --chromium-disable-routes.

POST/forms/chromium/screenshot/markdownGotenberg 8Gotenberg 9

Take a picture of Markdown

A picture of Markdown files, placed in index.html. Off with --chromium-disable-routes.

printf '<!doctype html><html><body>{{ toHTML "notes.md" }}</body></html>' > index.html
printf '# Notes\n\n- Agreed on Monday\n- Ships on Friday\n' > notes.md
curl http://localhost:3000/forms/chromium/screenshot/markdown -F files=@index.html -F files=@notes.md -o notes.png
Form fields 44
filesfilesrequiredGotenberg 8

index.html, which places each Markdown file with {{ toHTML "file.md" }}, the .md files, and the files the page names; header.html and footer.html as on the HTML route.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

skipNetworkIdleEventbooleandefault trueGotenberg 8checked only

Prints without waiting for the network to go idle. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

skipNetworkAlmostIdleEventbooleandefault trueGotenberg 8checked only

Prints without waiting for the network to go almost idle. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

failOnHttpStatusCodesJSONdefault [499,599]Gotenberg 8

Answers 409 when the page itself answers one of these statuses: 499 stands for 400 to 499, 599 for 500 to 599.

failOnResourceHttpStatusCodesJSONGotenberg 8

Answers 409 when a file the page loads (a picture, a stylesheet, a script) answers one of these statuses; ranges as for failOnHttpStatusCodes.

ignoreResourceHttpStatusDomainsJSONGotenberg 8

Domains, their subdomains included, that failOnResourceHttpStatusCodes leaves out: ["sentry-cdn.com"].

failOnResourceLoadingFailedbooleandefault falseGotenberg 8

Answers 409 when a file the page loads cannot be fetched at all.

failOnConsoleExceptionsbooleandefault falseGotenberg 8

Answers 409 when the page's script throws an exception.

failOnConsoleMessageTypesJSONGotenberg 8

Answers 409 when the page writes one of these console types: log, debug, info, warning, error or assert.

waitDelaystringa duration: 500ms, 2s, 1m30sGotenberg 8

Waits this long once the page has loaded, before printing: 500ms, 2s.

waitForExpressionstringGotenberg 8

Waits until this JavaScript expression is true, such as window.ready === true.

waitForSelectorstringGotenberg 8

Waits until an element matching this CSS selector is on the page, such as #chart.ready.

cookiesJSONGotenberg 8

Cookies to set before the page loads: objects with a name, a value and a domain, and optionally a path, secure, httpOnly and sameSite (Strict, Lax or None).

userAgentstringGotenberg 8

The User-Agent header the page's requests send.

extraHttpHeadersJSONGotenberg 8

Headers the page's requests send: {"X-Token": "abc"}. A value ending in ;scope=<regex> is sent only to the addresses the regex matches.

emulatedMediaTypeprint | screendefault printGotenberg 8

The CSS media type the page is laid out for.

emulatedMediaFeaturesJSONGotenberg 8

CSS media features the page sees: {"prefers-color-scheme": "dark"}.

omitBackgroundbooleandefault falseGotenberg 8

Leaves out the white background, for a transparent page or picture; a PDF needs printBackground too.

widthintegerdefault 800Gotenberg 8

The window's width in pixels.

heightintegerdefault 600Gotenberg 8

The window's height in pixels.

clipbooleandefault falseGotenberg 8

Takes the window alone, not the whole page.

selectorstringGotenberg 8

Takes the first element matching this CSS selector alone.

formatpng | jpeg | webpdefault pngGotenberg 8

The picture's format (Marqius Kern's --kern-screenshot-format sets another default for the server).

qualityintegerdefault 1000 to 100Gotenberg 8

JPEG and WebP quality, from 0 to 100.

optimizeForSpeedbooleandefault falseGotenberg 8checked only

Lets Chromium compress faster and larger. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

deviceScaleFactornumberdefault 1.0Gotenberg 8

Pixels per CSS pixel: 2 takes a picture twice as wide and tall.

kernBookFeaturesbooleanMarqius Kern

Prints what Chromium does not know: running headers (string-set, position: running()), page numbers in contents and cross-references (target-counter), leaders, footnotes (the server's --kern-book-features unless sent).

kernFontReportbooleanMarqius Kern

Says in the X-Marqius-Kern-Fonts header which fonts each conversion used, their files, and what stood in for what (the server's --kern-font-report unless sent).

kernRequireFontsstringMarqius Kern

Families this request must have, comma-separated: a conversion that cannot have one is refused (409) instead of printed in another font.

kernSignbooleanMarqius Kerndoes nothing here

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignCertificatestringMarqius Kerndoes nothing here

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignKeystringMarqius Kerndoes nothing here

With a PEM certificate that holds no key: the name of the file sent with the key. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignCertificatePasswordstringMarqius Kerndoes nothing here

Opens the store or the key; never logged, never echoed. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignReasonstringMarqius Kerndoes nothing here

The reason the signature gives (the server's --kern-sign-reason unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignLocationstringMarqius Kerndoes nothing here

Where the signature says it was made (the server's --kern-sign-location unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignContactInfostringMarqius Kerndoes nothing here

How to reach the signer (the server's --kern-sign-contact-info unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignNamestringMarqius Kerndoes nothing here

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignPadesbooleandefault trueMarqius Kerndoes nothing here

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignTimestampUrlstringan addressMarqius Kerndoes nothing here

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignFieldstringMarqius Kerndoes nothing here

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignBoxstringMarqius Kerndoes nothing here

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernTimestampUrlstringan addressMarqius Kerndoes nothing here

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

waitForWindowStatusstringGotenberg 9

Waits until the page sets window.status to this value, before the picture is taken.

Answers 11
  • 200 The picture: PNG, JPEG or WebP, as format asks; several as a ZIP. image/png, image/jpeg, image/webp, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 403 The address lists refuse an address the request makes the server fetch: Forbidden; the log says why.
  • 409 A failOn… check failed (the page or a file it loads answered an error, the console said what the request refuses), or a font the request requires is missing.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --chromium-disable-routes.

LibreOffice

Office documents (Word, Excel, PowerPoint, OpenDocument, RTF, CSV, text) to PDF, laid out as LibreOffice prints them.

POST/forms/libreoffice/convertGotenberg 8Gotenberg 9

Convert Office documents to PDF

Converts Word, Excel, CSV, PowerPoint, OpenDocument, RTF and text files to PDF, laid out as LibreOffice prints them; several are answered as a ZIP unless merged. Off with --libreoffice-disable-routes.

printf 'Name,Units,Price\nPaper,3,4.50\nInk,1,12.00\n' > order.csv
curl http://localhost:3000/forms/libreoffice/convert -F files=@order.csv -o order.pdf
Form fields 127
filesfilesrequiredGotenberg 8

The documents: Word (.docx, .doc, .docm, .dotx, .dot), Excel (.xlsx, .xls, .xlsm, .xltx, .xlt), CSV and TSV, PowerPoint (.pptx, .pptm, .ppsx, .ppsm, .potx), OpenDocument (.odt, .ods, .odp, their templates and flat files), RTF, plain text and PDF.

passwordstringGotenberg 8

Opens password-protected documents.

landscapebooleandefault falseGotenberg 8

Prints the documents on their side.

nativePageRangesstringGotenberg 8

The pages to print: 1-4, 2, 1,3,5-7.

singlePageSheetsbooleandefault falseGotenberg 8

Prints each sheet of a workbook whole, on one page of its own size.

mergebooleandefault falseGotenberg 8

Merges the PDFs into one, in the order of the documents' names.

nativePdfFormatsbooleandefault trueGotenberg 8

With pdfa or pdfua: made while converting, as LibreOffice does, rather than after.

generateTaggedPdfbooleandefault falseGotenberg 8

Makes a tagged PDF.

updateIndexesbooleandefault trueGotenberg 8checked only

Updates the documents' indexes before printing. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

exportFormFieldsbooleandefault trueGotenberg 8checked only

Keeps form fields as fields. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

allowDuplicateFieldNamesbooleandefault falseGotenberg 8checked only

Lets form fields share a name. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

exportBookmarksbooleandefault trueGotenberg 8checked only

Makes bookmarks from the headings. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

exportBookmarksToPdfDestinationbooleandefault falseGotenberg 8checked only

Writes the bookmarks as named destinations. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

exportPlaceholdersbooleandefault falseGotenberg 8checked only

Prints placeholder fields' marks. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

exportNotesbooleandefault falseGotenberg 8checked only

Prints comments as annotations. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

exportNotesPagesbooleandefault falseGotenberg 8checked only

Prints a presentation's notes pages too. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

exportOnlyNotesPagesbooleandefault falseGotenberg 8checked only

Prints a presentation's notes pages alone. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

exportNotesInMarginbooleandefault falseGotenberg 8checked only

Prints comments in the margin. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

convertOooTargetToPdfTargetbooleandefault falseGotenberg 8checked only

Turns links to other documents into links to their PDFs. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

exportLinksRelativeFsysbooleandefault falseGotenberg 8checked only

Writes links to files as relative ones. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

exportHiddenSlidesbooleandefault falseGotenberg 8checked only

Prints a presentation's hidden slides. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

skipEmptyPagesbooleandefault falseGotenberg 8checked only

Leaves out pages with nothing on them. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

addOriginalDocumentAsStreambooleandefault falseGotenberg 8checked only

Carries the document inside its PDF. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

initialView0 | 1 | 2 | default | outline | thumbnailsdefault 0Gotenberg 8checked only

The PDF viewer's side panel: 0 none, 1 bookmarks, 2 thumbnails (Gotenberg 9's requests: default, outline, thumbnails). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

initialPageintegerdefault 1at least 1Gotenberg 8checked only

The page the viewer opens at. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

magnification0 | 1 | 2 | 3 | 4 | default | fitWindow | fitWidth | fitVisible | zoomdefault 0Gotenberg 8checked only

The viewer's zoom: 0 default, 1 whole page, 2 page width, 3 window width, 4 zoom (Gotenberg 9's requests: default, fitWindow, fitWidth, fitVisible, zoom). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

zoomintegerdefault 100Gotenberg 8checked only

With magnification 4: the zoom in per cent. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

pageLayout0 | 1 | 2 | 3 | default | singlePage | oneColumn | twoColumnRightdefault 0Gotenberg 8checked only

The viewer's layout: 0 default, 1 one page, 2 one column, 3 two columns (Gotenberg 9's requests: default, singlePage, oneColumn, twoColumnRight). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

firstPageOnLeftbooleandefault falseGotenberg 8checked only

With two columns: the first page on the left. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

resizeWindowToInitialPagebooleandefault falseGotenberg 8checked only

The viewer's window fitted to the first page. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

centerWindowbooleandefault falseGotenberg 8checked only

The viewer's window centred. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

openInFullScreenModebooleandefault falseGotenberg 8checked only

The viewer opens full screen. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

displayPDFDocumentTitlebooleandefault trueGotenberg 8checked only

The viewer shows the document's title. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

hideViewerMenubarbooleandefault falseGotenberg 8checked only

The viewer hides its menu bar. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

hideViewerToolbarbooleandefault falseGotenberg 8checked only

The viewer hides its toolbar. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

hideViewerWindowControlsbooleandefault falseGotenberg 8checked only

The viewer hides its window controls. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

useTransitionEffectsbooleandefault trueGotenberg 8checked only

A presentation's slide transitions. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

openBookmarkLevelsintegerdefault -1Gotenberg 8checked only

The bookmark levels shown open: -1 all, or 1 to 10. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

losslessImageCompressionbooleandefault falseGotenberg 8checked only

Keeps pictures without loss. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

qualityintegerdefault 901 to 100Gotenberg 8checked only

JPEG quality for pictures, 1 to 100. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

reduceImageResolutionbooleandefault falseGotenberg 8checked only

Lowers the pictures' resolution to maxImageResolution. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

maxImageResolution75 | 150 | 300 | 600 | 1200default 300Gotenberg 8checked only

With reduceImageResolution: the pictures' highest resolution, in dpi. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

nativeWatermarkTextstringGotenberg 8

LibreOffice's own watermark: one line drawn across every page, as LibreOffice's PDF export draws it. It wins over nativeTiledWatermarkText. As Gotenberg hands it to LibreOffice, a value holding =, or one read as a whole number or as true or false, draws nothing.

nativeTiledWatermarkTextstringGotenberg 8

LibreOffice's own tiled watermark: the text repeated over every page.

nativeWatermarkColorstringdefault 8388223Gotenberg 8

The watermark's colour: a number (0xRRGGBB; 0, LibreOffice's own green), or #rrggbb in Gotenberg 9's requests.

nativeWatermarkFontHeightintegerGotenberg 8

The watermark's size, in points; 0 or none: as large as fits.

nativeWatermarkRotateAngleintegerGotenberg 8

The watermark's angle, in tenths of a degree, anticlockwise; 0 or none: as the page's shape turns it.

nativeWatermarkFontNamestringdefault HelveticaGotenberg 8

The watermark's font (Helvetica is drawn in Liberation Sans, as LibreOffice draws it).

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

splitModeintervals | pagesGotenberg 8

Splits the PDF: intervals into parts of splitSpan pages, pages into the pages splitSpan names. Several parts are answered as a ZIP.

splitSpanstringGotenberg 8

The pages of each part: a number of pages for intervals, page ranges (1-3, 5) for pages.

splitUnifybooleandefault falseGotenberg 8

With splitMode pages: the pages chosen in one PDF instead of one PDF each.

metadataJSONGotenberg 8

The PDF's metadata to write: {"Author": "…", "Title": "…", "Keywords": ["…"]}.

flattenbooleandefault falseGotenberg 8

Turns form fields and annotations into the page's own drawing.

userPasswordstringGotenberg 8

The password that opens the PDF.

ownerPasswordstringGotenberg 8

The password that lifts the PDF's restrictions.

allowPrintingbooleandefault trueGotenberg 8

With a password: printing allowed.

allowModifyingbooleandefault trueGotenberg 8

With a password: changes allowed.

allowCopyingbooleandefault trueGotenberg 8

With a password: copying text and pictures allowed.

allowAnnotatingbooleandefault trueGotenberg 8

With a password: comments allowed.

allowFillingFormsbooleandefault trueGotenberg 8

With a password: filling in forms allowed.

allowAssemblingbooleandefault trueGotenberg 8

With a password: inserting, rotating and deleting pages allowed.

stampfilesGotenberg 8

A picture or a PDF drawn over the pages (stampSource image or pdf).

stampSourcetext | image | pdfGotenberg 8

What the stamp is: text (stampExpression), or the picture or PDF sent as stamp.

stampExpressionstringGotenberg 8

The stamp's text, or the name of its file.

stampPagesstringGotenberg 8

The pages stamped: 1-3, 5; all when not given.

stampOptionsJSONGotenberg 8

How the stamp is drawn: {"font": "Helvetica", "fontSize": 24, "color": "#ff0000", "opacity": 0.5, "rotation": 45, "position": "center"}.

watermarkfilesGotenberg 8

A picture or a PDF drawn under the pages' content (watermarkSource image or pdf).

watermarkSourcetext | image | pdfGotenberg 8

What the watermark is: text (watermarkExpression), or the picture or PDF sent as watermark.

watermarkExpressionstringGotenberg 8

The watermark's text, or the name of its file.

watermarkPagesstringGotenberg 8

The pages watermarked: 1-3, 5; all when not given.

watermarkOptionsJSONGotenberg 8

How the watermark is drawn, as for stampOptions.

rotateAngle90 | 180 | 270Gotenberg 8

Turns the pages by this angle, clockwise.

rotatePagesstringGotenberg 8

With rotateAngle: the pages turned: 1-3, 5; all when not given.

optimizeImagesbooleandefault falseGotenberg 8

Packs the pictures again as JPEG, for a smaller file.

imageQualityinteger1 to 100Gotenberg 8

With optimizeImages: the JPEG quality, from 1 to 100.

kernOcrtrue | false | autodefault falseMarqius Kern

true (or auto): the pages that need it (scans: little text and a large picture) are read and laid over with hidden text, so the PDF can be searched and copied; the pages look as they did. The summary is in the X-Marqius-Kern-Ocr header.

kernOcrEnginestringMarqius Kern

The engine that reads: Marqius Kern's own (the server's --kern-ocr-engine unless sent: ppocr-v6-tiny; ppocr-v6-small reads more accurately), tesseract, a folder added with marqius-kern ocr add, or an OCR server's name (--kern-ocr-server).

kernOcrLanguagesstringMarqius Kern

The languages or scripts on the pages, comma-separated (ara, heb, hi, korean...): the default engine is swapped for Marqius Kern's engine that reads them.

kernOcrPagesstringMarqius Kern

The pages to read if they need it: 1-3,5, even, odd, !1; all unless sent.

kernOcrOptionalbooleandefault falseMarqius Kern

When OCR cannot run (no engine, a model not fetched yet), the file is answered as it is, with a note, instead of an error.

pdfaPDF/A-1b | PDF/A-2b | PDF/A-3bGotenberg 8

Makes the PDF this PDF/A level, for archiving.

pdfuabooleandefault falseGotenberg 8

Makes the PDF accessible (PDF/UA).

embedsfilesGotenberg 8

Files carried inside the PDF as attachments.

embedsMetadataJSONGotenberg 8

For each file carried inside, by its name: {"invoice.xml": {"mimeType": "text/xml", "relationship": "Data"}}.

facturxXmlfilesGotenberg 8

A Factur-X or ZUGFeRD invoice's XML: the PDF is made an e-invoice carrying it (PDF/A-3b).

facturxVersionstringdefault 1.0Gotenberg 8

The Factur-X version written in the PDF's metadata.

facturxConformanceLevelMINIMUM | BASIC WL | BASIC | EN 16931 | EXTENDED | XRECHNUNGGotenberg 8

The invoice XML's profile, when the XML does not say it.

facturxDocumentTypeINVOICE | ORDER | ORDER_RESPONSE | ORDER_CHANGEGotenberg 8

What the XML is.

singlePagebooleandefault falseGotenberg 9

Gotenberg 9's name for singlePageSheets, taken here too on a server answering 8.x alone, --kern-api=8 (a value that is not a boolean is passed over, as Gotenberg 8 passes over a field it does not know); on a server answering both, it makes the request 9.x's.

kernContentsbooleandefault falseMarqius Kerndoes nothing here

A contents page is made on the Chromium routes alone. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernDataJSONMarqius Kern

JSON that the Word files are filled from before they are converted ({{ customer.name }}, formats, loops and conditions); an array of objects makes a document for each record.

kernDataStrictbooleandefault falseMarqius Kern

With kernData: a field a record does not have is refused rather than left empty.

kernFirstPageNumberintegerdefault 1Marqius Kern

The number the first page is given; the rest count on from it.

kernFontReportbooleanMarqius Kern

Says in the X-Marqius-Kern-Fonts header which fonts each conversion used, their files, and what stood in for what (the server's --kern-font-report unless sent).

kernRequireFontsstringMarqius Kern

Families this request must have, comma-separated: a conversion that cannot have one is refused (409) instead of printed in another font.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

stagesJSONGotenberg 9

Operations run on the PDFs in order, each with its options as /forms/pdf's routes take them: a JSON array such as [{"op":"set-metadata","title":"Report"},{"op":"encrypt","userPassword":"open"}].

localestringa language tag: en-GBGotenberg 9

The language the documents are laid out in, as a BCP 47 tag such as en-AU or de-DE: dates, numbers and hyphenation follow it.

paperSizestringGotenberg 9

A paper by name, such as A4 or Letter, for the documents' pages.

paperWidthstringa length: 8.5, 210mm, 8.27inGotenberg 9

The paper's width for the documents' pages.

paperHeightstringa length: 8.5, 210mm, 8.27inGotenberg 9

The paper's height for the documents' pages.

nativePagesstringGotenberg 9

The pages to print: 1-4, 2, 1,3,5-7 (Gotenberg 9's name for nativePageRanges).

showTrackedChangesbooleandefault falseGotenberg 9

Prints a document's tracked changes, marked up.

nativeBookmarksbooleandefault trueGotenberg 9

Makes bookmarks from the headings (Gotenberg 9's name for exportBookmarks).

nativeTaggedPdfbooleandefault falseGotenberg 9

Makes a tagged PDF (Gotenberg 9's name for generateTaggedPdf).

nativeQualityintegerdefault 901 to 100Gotenberg 9

JPEG quality for pictures, from 1 to 100 (Gotenberg 9's name for quality).

nativeLosslessImageCompressionbooleandefault falseGotenberg 9

Keeps pictures without loss (Gotenberg 9's name for losslessImageCompression).

nativeReduceImageResolutionbooleandefault falseGotenberg 9

Lowers the pictures' resolution to nativeMaxImageResolution.

nativeMaxImageResolution75 | 150 | 300 | 600 | 1200default 300Gotenberg 9

With nativeReduceImageResolution: the pictures' highest resolution, in dpi.

nativeWatermarkFontSizeintegerat least 0Gotenberg 9

LibreOffice's own watermark: its size in points (Gotenberg 9's name for nativeWatermarkFontHeight).

nativeWatermarkRotationnumberGotenberg 9

LibreOffice's own watermark: its angle, in degrees.

nativeWatermarkFontstringdefault HelveticaGotenberg 9

LibreOffice's own watermark: its font (Gotenberg 9's name for nativeWatermarkFontName).

nativePdfaPDF/A-1b | PDF/A-2b | PDF/A-3b | PDF/A-4Gotenberg 9

Makes the PDF this PDF/A level as LibreOffice exports it (Gotenberg 9's name for pdfa).

nativePdfuaPDF/UA-1Gotenberg 9

Makes the PDF accessible as LibreOffice exports it; PDF/UA-2 comes from a remediate stage.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 409 A failOn… check failed (the page or a file it loads answered an error, the console said what the request refuses), or a font the request requires is missing.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --libreoffice-disable-routes.

PDF engines

Gotenberg 8's PDF tools: merge, split, rotate, protect, stamp, PDF/A, Factur-X, metadata and bookmarks.

POST/forms/pdfengines/mergeGotenberg 8

Merge PDFs

Merges PDFs into one, in the order of their names. Off with --pdfengines-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
mkdir -p cover && printf '<!doctype html><html><body style="background: #0b3d91"><h1 style="color: white">Cover</h1></body></html>' > cover/index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@cover/index.html -F printBackground=true -o cover.pdf
curl http://localhost:3000/forms/pdfengines/merge -F files=@cover.pdf -F files=@a.pdf -o merged.pdf
Form fields 58
filesfilesrequiredGotenberg 8

The PDFs, merged in the order of their names.

autoIndexBookmarksbooleandefault falseGotenberg 8

Numbers each PDF's bookmarks under it.

titleBookmarksbooleandefault falseGotenberg 8

A bookmark for each PDF, named after its title or file.

bookmarksJSONGotenberg 8

Bookmarks for the merged PDF, by the name of the file whose pages they point into: {"a.pdf": [{"title": "…", "page": 1, "children": [...]}]}.

splitModeintervals | pagesGotenberg 8checked only

Read with the other fields; the merge route does not split. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

splitSpanstringGotenberg 8checked only

Read with the other fields; the merge route does not split. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

splitUnifybooleandefault falseGotenberg 8checked only

Read with the other fields; the merge route does not split. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

metadataJSONGotenberg 8

The PDF's metadata to write: {"Author": "…", "Title": "…", "Keywords": ["…"]}.

flattenbooleandefault falseGotenberg 8

Turns form fields and annotations into the page's own drawing.

userPasswordstringGotenberg 8

The password that opens the PDF.

ownerPasswordstringGotenberg 8

The password that lifts the PDF's restrictions.

allowPrintingbooleandefault trueGotenberg 8

With a password: printing allowed.

allowModifyingbooleandefault trueGotenberg 8

With a password: changes allowed.

allowCopyingbooleandefault trueGotenberg 8

With a password: copying text and pictures allowed.

allowAnnotatingbooleandefault trueGotenberg 8

With a password: comments allowed.

allowFillingFormsbooleandefault trueGotenberg 8

With a password: filling in forms allowed.

allowAssemblingbooleandefault trueGotenberg 8

With a password: inserting, rotating and deleting pages allowed.

stampfilesGotenberg 8

A picture or a PDF drawn over the pages (stampSource image or pdf).

stampSourcetext | image | pdfGotenberg 8

What the stamp is: text (stampExpression), or the picture or PDF sent as stamp.

stampExpressionstringGotenberg 8

The stamp's text, or the name of its file.

stampPagesstringGotenberg 8

The pages stamped: 1-3, 5; all when not given.

stampOptionsJSONGotenberg 8

How the stamp is drawn: {"font": "Helvetica", "fontSize": 24, "color": "#ff0000", "opacity": 0.5, "rotation": 45, "position": "center"}.

watermarkfilesGotenberg 8

A picture or a PDF drawn under the pages' content (watermarkSource image or pdf).

watermarkSourcetext | image | pdfGotenberg 8

What the watermark is: text (watermarkExpression), or the picture or PDF sent as watermark.

watermarkExpressionstringGotenberg 8

The watermark's text, or the name of its file.

watermarkPagesstringGotenberg 8

The pages watermarked: 1-3, 5; all when not given.

watermarkOptionsJSONGotenberg 8

How the watermark is drawn, as for stampOptions.

rotateAngle90 | 180 | 270Gotenberg 8

Turns the pages by this angle, clockwise.

rotatePagesstringGotenberg 8

With rotateAngle: the pages turned: 1-3, 5; all when not given.

optimizeImagesbooleandefault falseGotenberg 8

Packs the pictures again as JPEG, for a smaller file.

imageQualityinteger1 to 100Gotenberg 8

With optimizeImages: the JPEG quality, from 1 to 100.

kernOcrtrue | false | autodefault falseMarqius Kern

true (or auto): the pages that need it (scans: little text and a large picture) are read and laid over with hidden text, so the PDF can be searched and copied; the pages look as they did. The summary is in the X-Marqius-Kern-Ocr header.

kernOcrEnginestringMarqius Kern

The engine that reads: Marqius Kern's own (the server's --kern-ocr-engine unless sent: ppocr-v6-tiny; ppocr-v6-small reads more accurately), tesseract, a folder added with marqius-kern ocr add, or an OCR server's name (--kern-ocr-server).

kernOcrLanguagesstringMarqius Kern

The languages or scripts on the pages, comma-separated (ara, heb, hi, korean...): the default engine is swapped for Marqius Kern's engine that reads them.

kernOcrPagesstringMarqius Kern

The pages to read if they need it: 1-3,5, even, odd, !1; all unless sent.

kernOcrOptionalbooleandefault falseMarqius Kern

When OCR cannot run (no engine, a model not fetched yet), the file is answered as it is, with a note, instead of an error.

pdfaPDF/A-1b | PDF/A-2b | PDF/A-3bGotenberg 8

Makes the PDF this PDF/A level, for archiving.

pdfuabooleandefault falseGotenberg 8

Makes the PDF accessible (PDF/UA).

embedsfilesGotenberg 8

Files carried inside the PDF as attachments.

embedsMetadataJSONGotenberg 8

For each file carried inside, by its name: {"invoice.xml": {"mimeType": "text/xml", "relationship": "Data"}}.

facturxXmlfilesGotenberg 8

A Factur-X or ZUGFeRD invoice's XML: the PDF is made an e-invoice carrying it (PDF/A-3b).

facturxVersionstringdefault 1.0Gotenberg 8

The Factur-X version written in the PDF's metadata.

facturxConformanceLevelMINIMUM | BASIC WL | BASIC | EN 16931 | EXTENDED | XRECHNUNGGotenberg 8

The invoice XML's profile, when the XML does not say it.

facturxDocumentTypeINVOICE | ORDER | ORDER_RESPONSE | ORDER_CHANGEGotenberg 8

What the XML is.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 9
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdfengines-disable-routes.

POST/forms/pdfengines/splitGotenberg 8

Split PDFs

Splits each PDF into parts. Off with --pdfengines-disable-routes.

mkdir -p three && printf '<!doctype html><html><body><h1 style="break-after: page">One</h1><h1 style="break-after: page">Two</h1><h1>Three</h1></body></html>' > three/index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@three/index.html -o pages.pdf
curl http://localhost:3000/forms/pdfengines/split -F files=@pages.pdf -F splitMode=intervals -F splitSpan=1 -o parts.zip
Form fields 55
filesfilesrequiredGotenberg 8

The PDFs.

splitModeintervals | pagesrequiredGotenberg 8

intervals: parts of splitSpan pages; pages: the pages splitSpan names.

splitSpanstringrequiredGotenberg 8

A number of pages for intervals, page ranges for pages.

splitUnifybooleandefault falseGotenberg 8

With pages: the pages chosen in one PDF.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

metadataJSONGotenberg 8

The PDF's metadata to write: {"Author": "…", "Title": "…", "Keywords": ["…"]}.

flattenbooleandefault falseGotenberg 8

Turns form fields and annotations into the page's own drawing.

userPasswordstringGotenberg 8

The password that opens the PDF.

ownerPasswordstringGotenberg 8

The password that lifts the PDF's restrictions.

allowPrintingbooleandefault trueGotenberg 8

With a password: printing allowed.

allowModifyingbooleandefault trueGotenberg 8

With a password: changes allowed.

allowCopyingbooleandefault trueGotenberg 8

With a password: copying text and pictures allowed.

allowAnnotatingbooleandefault trueGotenberg 8

With a password: comments allowed.

allowFillingFormsbooleandefault trueGotenberg 8

With a password: filling in forms allowed.

allowAssemblingbooleandefault trueGotenberg 8

With a password: inserting, rotating and deleting pages allowed.

stampfilesGotenberg 8

A picture or a PDF drawn over the pages (stampSource image or pdf).

stampSourcetext | image | pdfGotenberg 8

What the stamp is: text (stampExpression), or the picture or PDF sent as stamp.

stampExpressionstringGotenberg 8

The stamp's text, or the name of its file.

stampPagesstringGotenberg 8

The pages stamped: 1-3, 5; all when not given.

stampOptionsJSONGotenberg 8

How the stamp is drawn: {"font": "Helvetica", "fontSize": 24, "color": "#ff0000", "opacity": 0.5, "rotation": 45, "position": "center"}.

watermarkfilesGotenberg 8

A picture or a PDF drawn under the pages' content (watermarkSource image or pdf).

watermarkSourcetext | image | pdfGotenberg 8

What the watermark is: text (watermarkExpression), or the picture or PDF sent as watermark.

watermarkExpressionstringGotenberg 8

The watermark's text, or the name of its file.

watermarkPagesstringGotenberg 8

The pages watermarked: 1-3, 5; all when not given.

watermarkOptionsJSONGotenberg 8

How the watermark is drawn, as for stampOptions.

rotateAngle90 | 180 | 270Gotenberg 8

Turns the pages by this angle, clockwise.

rotatePagesstringGotenberg 8

With rotateAngle: the pages turned: 1-3, 5; all when not given.

optimizeImagesbooleandefault falseGotenberg 8

Packs the pictures again as JPEG, for a smaller file.

imageQualityinteger1 to 100Gotenberg 8

With optimizeImages: the JPEG quality, from 1 to 100.

kernOcrtrue | false | autodefault falseMarqius Kern

true (or auto): the pages that need it (scans: little text and a large picture) are read and laid over with hidden text, so the PDF can be searched and copied; the pages look as they did. The summary is in the X-Marqius-Kern-Ocr header.

kernOcrEnginestringMarqius Kern

The engine that reads: Marqius Kern's own (the server's --kern-ocr-engine unless sent: ppocr-v6-tiny; ppocr-v6-small reads more accurately), tesseract, a folder added with marqius-kern ocr add, or an OCR server's name (--kern-ocr-server).

kernOcrLanguagesstringMarqius Kern

The languages or scripts on the pages, comma-separated (ara, heb, hi, korean...): the default engine is swapped for Marqius Kern's engine that reads them.

kernOcrPagesstringMarqius Kern

The pages to read if they need it: 1-3,5, even, odd, !1; all unless sent.

kernOcrOptionalbooleandefault falseMarqius Kern

When OCR cannot run (no engine, a model not fetched yet), the file is answered as it is, with a note, instead of an error.

pdfaPDF/A-1b | PDF/A-2b | PDF/A-3bGotenberg 8

Makes the PDF this PDF/A level, for archiving.

pdfuabooleandefault falseGotenberg 8

Makes the PDF accessible (PDF/UA).

embedsfilesGotenberg 8

Files carried inside the PDF as attachments.

embedsMetadataJSONGotenberg 8

For each file carried inside, by its name: {"invoice.xml": {"mimeType": "text/xml", "relationship": "Data"}}.

facturxXmlfilesGotenberg 8

A Factur-X or ZUGFeRD invoice's XML: the PDF is made an e-invoice carrying it (PDF/A-3b).

facturxVersionstringdefault 1.0Gotenberg 8

The Factur-X version written in the PDF's metadata.

facturxConformanceLevelMINIMUM | BASIC WL | BASIC | EN 16931 | EXTENDED | XRECHNUNGGotenberg 8

The invoice XML's profile, when the XML does not say it.

facturxDocumentTypeINVOICE | ORDER | ORDER_RESPONSE | ORDER_CHANGEGotenberg 8

What the XML is.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 9
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdfengines-disable-routes.

POST/forms/pdfengines/flattenGotenberg 8

Flatten PDFs

Turns form fields and annotations into the pages' own drawing. Off with --pdfengines-disable-routes.

cat > form.pdf <<'PDF'
%PDF-1.7
1 0 obj
<< /Type /Catalog /Pages 2 0 R /AcroForm << /Fields [4 0 R] /DA (/Helv 12 Tf 0 g) /DR << /Font << /Helv 5 0 R >> >> >> >>
endobj
2 0 obj
<< /Type /Pages /Kids [3 0 R] /Count 1 >>
endobj
3 0 obj
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 595 842] /Annots [4 0 R] /Contents 6 0 R /Resources << /Font << /Helv 5 0 R >> >> >>
endobj
4 0 obj
<< /Type /Annot /Subtype /Widget /FT /Tx /T (name) /V () /Rect [72 700 372 728] /P 3 0 R /F 4 /DA (/Helv 12 Tf 0 g) /MK << /BC [0 0 0] >> >>
endobj
5 0 obj
<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >>
endobj
6 0 obj
<< /Length 43 >>
stream
BT /Helv 14 Tf 72 740 Td (Your name:) Tj ET
endstream
endobj
xref
0 7
0000000000 65535 f 
0000000009 00000 n 
0000000146 00000 n 
0000000203 00000 n 
0000000347 00000 n 
0000000503 00000 n 
0000000600 00000 n 
trailer
<< /Size 7 /Root 1 0 R >>
startxref
693
%%EOF
PDF
curl http://localhost:3000/forms/pdfengines/flatten -F files=@form.pdf -o flat.pdf
Form fields 15
filesfilesrequiredGotenberg 8

The PDFs.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 9
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdfengines-disable-routes.

POST/forms/pdfengines/optimizeGotenberg 8

Optimise PDFs

Makes PDFs smaller: pictures packed again as JPEG when asked. Off with --pdfengines-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdfengines/optimize -F files=@a.pdf -F imageQuality=80 -o small.pdf
Form fields 17
filesfilesrequiredGotenberg 8

The PDFs, their pictures packed again as JPEG.

optimizeImagesbooleandefault falseGotenberg 8checked only

Read as true or false, as Gotenberg 8.40.0's form reads it (anything else is refused); the route packs the pictures either way, as 8.40.0's does. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

imageQualityinteger1 to 100Gotenberg 8

The JPEG quality, from 1 to 100.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 9
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdfengines-disable-routes.

POST/forms/pdfengines/convertGotenberg 8

Make PDFs PDF/A or PDF/UA

Makes PDFs a PDF/A level, accessible (PDF/UA), or both. Off with --pdfengines-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdfengines/convert -F files=@a.pdf -F pdfa=PDF/A-2b -o archive.pdf
Form fields 17
filesfilesrequiredGotenberg 8

The PDFs.

pdfaPDF/A-1b | PDF/A-2b | PDF/A-3bGotenberg 8

The PDF/A level.

pdfuabooleandefault falseGotenberg 8

Makes the PDFs accessible (PDF/UA).

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 9
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdfengines-disable-routes.

POST/forms/pdfengines/rotateGotenberg 8

Rotate pages

Turns pages by 90, 180 or 270 degrees. Off with --pdfengines-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdfengines/rotate -F files=@a.pdf -F rotateAngle=90 -o turned.pdf
Form fields 17
filesfilesrequiredGotenberg 8

The PDFs.

rotateAngle90 | 180 | 270requiredGotenberg 8

The angle, clockwise.

rotatePagesstringGotenberg 8

The pages turned: 1-3, 5; all when not given.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 9
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdfengines-disable-routes.

POST/forms/pdfengines/encryptGotenberg 8

Protect PDFs with a password

Sets the passwords that open a PDF and lift its restrictions, and what is allowed. Off with --pdfengines-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdfengines/encrypt -F files=@a.pdf -F userPassword=open -o locked.pdf
Form fields 23
filesfilesrequiredGotenberg 8

The PDFs.

userPasswordstringrequiredGotenberg 8

The password that opens the PDF.

ownerPasswordstringGotenberg 8

The password that lifts its restrictions.

allowPrintingbooleandefault trueGotenberg 8

Printing allowed.

allowModifyingbooleandefault trueGotenberg 8

Changes allowed.

allowCopyingbooleandefault trueGotenberg 8

Copying allowed.

allowAnnotatingbooleandefault trueGotenberg 8

Comments allowed.

allowFillingFormsbooleandefault trueGotenberg 8

Filling in forms allowed.

allowAssemblingbooleandefault trueGotenberg 8

Changing pages allowed.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 9
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdfengines-disable-routes.

POST/forms/pdfengines/embedGotenberg 8

Carry files inside PDFs

Carries files inside each PDF as attachments. Off with --pdfengines-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
printf 'Shipped on Friday.\n' > note.txt
curl http://localhost:3000/forms/pdfengines/embed -F files=@a.pdf -F embeds=@note.txt -o with-note.pdf
Form fields 21
filesfilesrequiredGotenberg 8

The PDFs.

embedsfilesrequiredGotenberg 8

The files carried inside each PDF.

embedsMetadataJSONGotenberg 8

For each file carried inside, by its name: its mimeType and relationship.

facturxXmlfilesGotenberg 8

A Factur-X or ZUGFeRD invoice's XML, carried as the e-invoice (with facturxConformanceLevel).

facturxVersionstringdefault 1.0Gotenberg 8

The Factur-X version written.

facturxConformanceLevelMINIMUM | BASIC WL | BASIC | EN 16931 | EXTENDED | XRECHNUNGGotenberg 8

The XML's profile.

facturxDocumentTypeINVOICE | ORDER | ORDER_RESPONSE | ORDER_CHANGEGotenberg 8

What the XML is.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 9
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdfengines-disable-routes.

POST/forms/pdfengines/factur-xGotenberg 8

Make PDFs Factur-X invoices

Makes each PDF a Factur-X / ZUGFeRD e-invoice carrying the XML sent. Off with --pdfengines-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o invoice-print.pdf
cat > invoice.xml <<'XML'
<?xml version="1.0" encoding="UTF-8"?>
<rsm:CrossIndustryInvoice xmlns:rsm="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100" xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100" xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100">
  <rsm:ExchangedDocumentContext>
    <ram:GuidelineSpecifiedDocumentContextParameter><ram:ID>urn:factur-x.eu:1p0:minimum</ram:ID></ram:GuidelineSpecifiedDocumentContextParameter>
  </rsm:ExchangedDocumentContext>
  <rsm:ExchangedDocument>
    <ram:ID>INV-2026-001</ram:ID>
    <ram:TypeCode>380</ram:TypeCode>
    <ram:IssueDateTime><udt:DateTimeString format="102">20261130</udt:DateTimeString></ram:IssueDateTime>
  </rsm:ExchangedDocument>
  <rsm:SupplyChainTradeTransaction>
    <ram:ApplicableHeaderTradeAgreement>
      <ram:SellerTradeParty>
        <ram:Name>Example Ltd</ram:Name>
        <ram:SpecifiedLegalOrganization><ram:ID>123456789</ram:ID></ram:SpecifiedLegalOrganization>
        <ram:PostalTradeAddress><ram:CountryID>FR</ram:CountryID></ram:PostalTradeAddress>
        <ram:SpecifiedTaxRegistration><ram:ID schemeID="VA">FR32123456789</ram:ID></ram:SpecifiedTaxRegistration>
      </ram:SellerTradeParty>
      <ram:BuyerTradeParty><ram:Name>Client SA</ram:Name></ram:BuyerTradeParty>
    </ram:ApplicableHeaderTradeAgreement>
    <ram:ApplicableHeaderTradeDelivery/>
    <ram:ApplicableHeaderTradeSettlement>
      <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode>
      <ram:SpecifiedTradeSettlementHeaderMonetarySummation>
        <ram:TaxBasisTotalAmount>100.00</ram:TaxBasisTotalAmount>
        <ram:TaxTotalAmount currencyID="EUR">20.00</ram:TaxTotalAmount>
        <ram:GrandTotalAmount>120.00</ram:GrandTotalAmount>
        <ram:DuePayableAmount>120.00</ram:DuePayableAmount>
      </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
    </ram:ApplicableHeaderTradeSettlement>
  </rsm:SupplyChainTradeTransaction>
</rsm:CrossIndustryInvoice>
XML
curl http://localhost:3000/forms/pdfengines/factur-x -F files=@invoice-print.pdf -F facturxXml=@invoice.xml -F facturxConformanceLevel=MINIMUM -o invoice.pdf
Form fields 22
filesfilesrequiredGotenberg 8

The PDFs.

facturxXmlfilesrequiredGotenberg 8

The invoice's XML.

facturxVersionstringdefault 1.0Gotenberg 8

The Factur-X version written.

facturxConformanceLevelMINIMUM | BASIC WL | BASIC | EN 16931 | EXTENDED | XRECHNUNGGotenberg 8

The XML's profile, when it does not say it.

facturxDocumentTypeINVOICE | ORDER | ORDER_RESPONSE | ORDER_CHANGEGotenberg 8

What the XML is.

pdfaPDF/A-3bGotenberg 8

PDF/A-3b, which Factur-X asks for.

pdfuabooleandefault falseGotenberg 8

Makes the PDFs accessible too.

userPasswordstringGotenberg 8checked only

Read only to refuse it: a PDF/A file, which a Factur-X invoice is, is never locked with a password. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 9
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdfengines-disable-routes.

POST/forms/pdfengines/stampGotenberg 8

Stamp pages

Draws text, a picture or a PDF over the pages. Off with --pdfengines-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdfengines/stamp -F files=@a.pdf -F stampSource=text -F stampExpression=PAID -o paid.pdf
Form fields 20
filesfilesrequiredGotenberg 8

The PDFs.

stampfilesGotenberg 8

The picture or PDF drawn over the pages.

stampSourcetext | image | pdfGotenberg 8

What the stamp is.

stampExpressionstringGotenberg 8

The stamp's text, or the name of its file.

stampPagesstringGotenberg 8

The pages stamped.

stampOptionsJSONGotenberg 8

How the stamp is drawn: font, fontSize, color, opacity, rotation, position.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 9
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdfengines-disable-routes.

POST/forms/pdfengines/watermarkGotenberg 8

Watermark pages

Draws text, a picture or a PDF under the pages' content. Off with --pdfengines-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdfengines/watermark -F files=@a.pdf -F watermarkSource=text -F watermarkExpression=DRAFT -o draft.pdf
Form fields 20
filesfilesrequiredGotenberg 8

The PDFs.

watermarkfilesGotenberg 8

The picture or PDF drawn under the pages' content.

watermarkSourcetext | image | pdfGotenberg 8

What the watermark is.

watermarkExpressionstringGotenberg 8

The watermark's text, or the name of its file.

watermarkPagesstringGotenberg 8

The pages watermarked.

watermarkOptionsJSONGotenberg 8

How the watermark is drawn, as for stamps.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 9
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdfengines-disable-routes.

POST/forms/pdfengines/metadata/readGotenberg 8

Read PDFs' metadata

Each PDF's metadata, as JSON by file name. Off with --pdfengines-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdfengines/metadata/read -F files=@a.pdf -o metadata.json
Form fields 15
filesfilesrequiredGotenberg 8

The PDFs.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kernchecked only

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignCertificatestringMarqius Kernchecked only

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignKeystringMarqius Kernchecked only

With a PEM certificate that holds no key: the name of the file sent with the key. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignCertificatePasswordstringMarqius Kernchecked only

Opens the store or the key; never logged, never echoed. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignReasonstringMarqius Kernchecked only

The reason the signature gives (the server's --kern-sign-reason unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignLocationstringMarqius Kernchecked only

Where the signature says it was made (the server's --kern-sign-location unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignContactInfostringMarqius Kernchecked only

How to reach the signer (the server's --kern-sign-contact-info unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignNamestringMarqius Kernchecked only

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignPadesbooleandefault trueMarqius Kernchecked only

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignTimestampUrlstringan addressMarqius Kernchecked only

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignFieldstringMarqius Kernchecked only

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignBoxstringMarqius Kernchecked only

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernTimestampUrlstringan addressMarqius Kernchecked only

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

Answers 6
  • 200 JSON. application/json
    {
      "report.pdf": {
        "CreateDate": "2026:11:30 16:44:37Z",
        "Creator": "marqius",
        "FileType": "PDF",
        "MIMEType": "application/pdf",
        "ModifyDate": "2026:11:30 16:44:37Z",
        "PDFVersion": 1.7,
        "PageCount": 1,
        "Producer": "marqius 0.12.18",
        "Title": "Quarterly report"
      }
    }
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.

Turned off with --pdfengines-disable-routes.

POST/forms/pdfengines/metadata/writeGotenberg 8

Write PDFs' metadata

Writes metadata into each PDF. Off with --pdfengines-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdfengines/metadata/write -F files=@a.pdf -F 'metadata={"Title":"Hello","Author":"Ada"}' -o titled.pdf
Form fields 16
filesfilesrequiredGotenberg 8

The PDFs.

metadataJSONrequiredGotenberg 8

The metadata to write: {"Author": "…", "Title": "…"}.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 9
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdfengines-disable-routes.

POST/forms/pdfengines/bookmarks/readGotenberg 8

Read PDFs' bookmarks

Each PDF's bookmarks, as JSON by file name. Off with --pdfengines-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdfengines/bookmarks/read -F files=@a.pdf -o bookmarks.json
Form fields 15
filesfilesrequiredGotenberg 8

The PDFs.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kernchecked only

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignCertificatestringMarqius Kernchecked only

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignKeystringMarqius Kernchecked only

With a PEM certificate that holds no key: the name of the file sent with the key. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignCertificatePasswordstringMarqius Kernchecked only

Opens the store or the key; never logged, never echoed. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignReasonstringMarqius Kernchecked only

The reason the signature gives (the server's --kern-sign-reason unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignLocationstringMarqius Kernchecked only

Where the signature says it was made (the server's --kern-sign-location unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignContactInfostringMarqius Kernchecked only

How to reach the signer (the server's --kern-sign-contact-info unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignNamestringMarqius Kernchecked only

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignPadesbooleandefault trueMarqius Kernchecked only

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignTimestampUrlstringan addressMarqius Kernchecked only

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignFieldstringMarqius Kernchecked only

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignBoxstringMarqius Kernchecked only

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernTimestampUrlstringan addressMarqius Kernchecked only

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

Answers 6
  • 200 JSON. application/json
    {
      "report.pdf": [
        {
          "children": [
            {
              "page": 1,
              "title": "Detail"
            }
          ],
          "page": 1,
          "title": "Start"
        }
      ]
    }
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.

Turned off with --pdfengines-disable-routes.

POST/forms/pdfengines/bookmarks/writeGotenberg 8

Write PDFs' bookmarks

Writes bookmarks into each PDF. Off with --pdfengines-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdfengines/bookmarks/write -F files=@a.pdf -F 'bookmarks=[{"title":"Start","page":1}]' -o marked.pdf
Form fields 16
filesfilesrequiredGotenberg 8

The PDFs.

bookmarksJSONrequiredGotenberg 8

The bookmarks: [{"title": "…", "page": 1, "children": [...]}], or by file name for several PDFs.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 9
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdfengines-disable-routes.

PDF (Gotenberg 9)

Gotenberg 9's PDF routes: one operation each, or several in order with pipe.

POST/forms/pdf/pipeGotenberg 9

Run operations on PDFs

Runs the operations of stages on the PDFs, in order: what one operation leaves, the next takes. A last operation that reads (render, extract-text, extract-attachments) answers its files beside the PDFs, as a ZIP. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/pipe -F files=@a.pdf -F 'stages=[{"op":"rotate","angle":90},{"op":"set-metadata","title":"Turned"}]' -o turned.pdf
Form fields 17
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

stagesJSONrequiredGotenberg 9

Operations run on the PDFs in order, each with its options as /forms/pdf's routes take them: a JSON array such as [{"op":"set-metadata","title":"Report"},{"op":"encrypt","userPassword":"open"}].

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/mergeGotenberg 9

Merge PDFs

Merges the PDFs into one, in the order of their names. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
mkdir -p cover && printf '<!doctype html><html><body style="background: #0b3d91"><h1 style="color: white">Cover</h1></body></html>' > cover/index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@cover/index.html -F printBackground=true -o cover.pdf
curl http://localhost:3000/forms/pdf/merge -F files=@a.pdf -F files=@cover.pdf -o merged.pdf
Form fields 18
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

fileBookmarksJSONGotenberg 9

A bookmark for each PDF, labelled from its title or its file name: a JSON object.

dropSignaturesbooleandefault falseGotenberg 9

true: a signed PDF has its signatures taken out, as the change would break them; otherwise a signed PDF is refused.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/splitGotenberg 9

Split PDFs

Splits each PDF into parts, answered as a ZIP. Off with --pdf-disable-routes.

mkdir -p three && printf '<!doctype html><html><body><h1 style="break-after: page">One</h1><h1 style="break-after: page">Two</h1><h1>Three</h1></body></html>' > three/index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@three/index.html -o pages.pdf
curl http://localhost:3000/forms/pdf/split -F files=@pages.pdf -F every=1 -o parts.zip
Form fields 19
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

everyintegerat least 1Gotenberg 9

Parts of this many pages each.

rangesJSONGotenberg 9

Or the parts by their pages: a JSON array such as ["1-3","4"].

dropSignaturesbooleandefault falseGotenberg 9

true: a signed PDF has its signatures taken out, as the change would break them; otherwise a signed PDF is refused.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/selectGotenberg 9

Keep some pages

Keeps the pages named, in the order named. Off with --pdf-disable-routes.

mkdir -p three && printf '<!doctype html><html><body><h1 style="break-after: page">One</h1><h1 style="break-after: page">Two</h1><h1>Three</h1></body></html>' > three/index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@three/index.html -o pages.pdf
curl http://localhost:3000/forms/pdf/select -F files=@pages.pdf -F pages=3,1 -o picked.pdf
Form fields 18
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

pagesstringGotenberg 9

The pages kept, in the order named: 1-3,5, even, odd, last.

dropSignaturesbooleandefault falseGotenberg 9

true: a signed PDF has its signatures taken out, as the change would break them; otherwise a signed PDF is refused.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/deleteGotenberg 9

Delete pages

Takes the pages named out. Off with --pdf-disable-routes.

mkdir -p three && printf '<!doctype html><html><body><h1 style="break-after: page">One</h1><h1 style="break-after: page">Two</h1><h1>Three</h1></body></html>' > three/index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@three/index.html -o pages.pdf
curl http://localhost:3000/forms/pdf/delete -F files=@pages.pdf -F pages=2 -o fewer.pdf
Form fields 18
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

pagesstringGotenberg 9

The pages taken out: 1-3,5, even, odd, last.

dropSignaturesbooleandefault falseGotenberg 9

true: a signed PDF has its signatures taken out, as the change would break them; otherwise a signed PDF is refused.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/insertGotenberg 9

Insert pages

Inserts another PDF's pages after a page. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
mkdir -p cover && printf '<!doctype html><html><body style="background: #0b3d91"><h1 style="color: white">Cover</h1></body></html>' > cover/index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@cover/index.html -F printBackground=true -o cover.pdf
curl http://localhost:3000/forms/pdf/insert -F files=@a.pdf -F files=@cover.pdf -F source=cover.pdf -F at=0 -o with-cover.pdf
Form fields 20
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

sourcestringrequiredGotenberg 9

The name of the PDF sent with the request whose pages are inserted.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

atintegerdefault 0at least 0Gotenberg 9

The page after which they go: 0 puts them first.

sourcePagesstringGotenberg 9

The source's pages inserted: 1-3,5; all unless given.

dropSignaturesbooleandefault falseGotenberg 9

true: a signed PDF has its signatures taken out, as the change would break them; otherwise a signed PDF is refused.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/rotateGotenberg 9

Rotate pages

Turns pages by a multiple of 90 degrees. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/rotate -F files=@a.pdf -F angle=90 -o turned.pdf
Form fields 18
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

angleintegerrequireda multiple of 90Gotenberg 9

The angle, clockwise: a multiple of 90.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

pagesstringGotenberg 9

The pages turned: 1-3,5, even, odd, last; all unless given.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/composeGotenberg 9

Compose pages on new sheets

Places pages, scaled, on new sheets of a paper size: labels, booklets, several pages to a sheet. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/compose -F files=@a.pdf -F paperSize=A4 -F 'placements=[{"source":"a.pdf","x":0,"y":421,"scale":0.5},{"source":"a.pdf","x":298,"y":421,"scale":0.5}]' -o two-up.pdf
Form fields 21
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

placementsJSONrequiredGotenberg 9

Where pages land: a JSON array of objects with source (a PDF's name), sourcePage, page (the sheet), x, y (points from the lower left) and scale.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

paperSizestringGotenberg 9

The new sheets' paper by name, such as A4 or Letter.

paperWidthstringa length: 8.5, 210mm, 8.27inGotenberg 9

Or the new sheets' width: inches, or a number with a unit (6in, 432pt).

paperHeightstringa length: 8.5, 210mm, 8.27inGotenberg 9

And their height.

dropSignaturesbooleandefault falseGotenberg 9

true: a signed PDF has its signatures taken out, as the change would break them; otherwise a signed PDF is refused.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/encryptGotenberg 9

Protect PDFs with a password

Sets the passwords that open a PDF and lift its restrictions, and what a reader may do. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/encrypt -F files=@a.pdf -F userPassword=open -o locked.pdf
Form fields 21
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

userPasswordstringGotenberg 9

The password that opens the PDF.

ownerPasswordstringGotenberg 9

The password that lifts its restrictions.

algorithmaes256 | aes128 | rc4-128 | rc4-40Gotenberg 9

The encryption.

permissionsJSONGotenberg 9

What a reader may do without the owner password: a JSON object such as {"print":false,"copy":false}.

dropSignaturesbooleandefault falseGotenberg 9

true: a signed PDF has its signatures taken out, as the change would break them; otherwise a signed PDF is refused.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/decryptGotenberg 9

Remove PDFs' passwords

Opens password-protected PDFs and answers them without their encryption. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/encrypt -F files=@a.pdf -F userPassword=open -o locked.pdf
curl http://localhost:3000/forms/pdf/decrypt -F files=@locked.pdf -F password=open -o unlocked.pdf
Form fields 18
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

passwordstringGotenberg 9

The password that opens the PDFs.

dropSignaturesbooleandefault falseGotenberg 9

true: a signed PDF has its signatures taken out, as the change would break them; otherwise a signed PDF is refused.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/optimizeGotenberg 9

Optimise PDFs

Makes PDFs smaller without losing anything: object streams, duplicates removed, streams and pictures compressed again without loss, fonts cut to the letters used. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/optimize -F files=@a.pdf -o small.pdf
Form fields 22
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

objectStreamsbooleandefault trueGotenberg 9

Packs the PDF's objects into compressed object streams.

dedupbooleandefault trueGotenberg 9

Keeps one copy of what is the same (pictures, fonts).

recompressImagesbooleandefault trueGotenberg 9

Compresses pictures again, without loss.

compressStreamsbooleandefault trueGotenberg 9

Compresses the content streams again.

subsetFontsbooleandefault trueGotenberg 9

Cuts the fonts down to the letters used.

dropSignaturesbooleandefault falseGotenberg 9

true: a signed PDF has its signatures taken out, as the change would break them; otherwise a signed PDF is refused.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/set-metadataGotenberg 9

Write PDFs' metadata

Writes the document's title, author and other details. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/set-metadata -F files=@a.pdf -F title=Hello -F author=Ada -o titled.pdf
Form fields 24
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

titlestringGotenberg 9

The document's title.

authorstringGotenberg 9

Its author.

subjectstringGotenberg 9

Its subject.

keywordsstringGotenberg 9

Its keywords.

creatorstringGotenberg 9

The program that made the original document.

producerstringGotenberg 9

The program that made the PDF.

creationDatestringa date and timeGotenberg 9

When it was made, as an RFC 3339 date and time.

modDatestringa date and timeGotenberg 9

When it was last changed, as an RFC 3339 date and time.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/set-bookmarksGotenberg 9

Write PDFs' bookmarks

Replaces each PDF's bookmarks. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/set-bookmarks -F files=@a.pdf -F 'bookmarks=[{"title":"Start","pageNumber":1}]' -o marked.pdf
Form fields 17
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

bookmarksJSONrequiredGotenberg 9

The bookmarks: a JSON array of objects with title, pageNumber and children, such as [{"title":"Intro","pageNumber":1}].

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/attachGotenberg 9

Carry a file inside PDFs

Carries a file sent with the request inside each PDF, as an attachment. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
printf 'Shipped on Friday.\n' > note.txt
curl http://localhost:3000/forms/pdf/attach -F files=@a.pdf -F files=@note.txt -F file=note.txt -o with-note.pdf
Form fields 20
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

filestringrequiredGotenberg 9

The name of the file sent with the request that each PDF carries.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

namestringGotenberg 9

The name it takes in the PDF; its own unless given.

mimeTypestringGotenberg 9

Its media type, such as text/xml.

relationshipSource | Data | Alternative | Supplement | UnspecifiedGotenberg 9

How it relates to the PDF (PDF/A-3's AFRelationship).

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/detachGotenberg 9

Remove files carried in PDFs

Takes attachments out of each PDF. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
printf 'Shipped on Friday.\n' > note.txt
curl http://localhost:3000/forms/pdf/attach -F files=@a.pdf -F files=@note.txt -F file=note.txt -o with-note.pdf
curl http://localhost:3000/forms/pdf/detach -F files=@with-note.pdf -F name=note.txt -o without-note.pdf
Form fields 17
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

namestringGotenberg 9

The attachment taken out, by name; every one unless given.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/extract-attachmentsGotenberg 9

Take out files carried in PDFs

Answers the files the PDFs carry, as they are. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
printf 'Shipped on Friday.\n' > note.txt
curl http://localhost:3000/forms/pdf/attach -F files=@a.pdf -F files=@note.txt -F file=note.txt -o with-note.pdf
curl http://localhost:3000/forms/pdf/extract-attachments -F files=@with-note.pdf -o note-back.txt
Form fields 17
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

namestringGotenberg 9

The attachment answered, by name; every one unless given.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kerndoes nothing here

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignCertificatestringMarqius Kerndoes nothing here

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignKeystringMarqius Kerndoes nothing here

With a PEM certificate that holds no key: the name of the file sent with the key. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignCertificatePasswordstringMarqius Kerndoes nothing here

Opens the store or the key; never logged, never echoed. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignReasonstringMarqius Kerndoes nothing here

The reason the signature gives (the server's --kern-sign-reason unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignLocationstringMarqius Kerndoes nothing here

Where the signature says it was made (the server's --kern-sign-location unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignContactInfostringMarqius Kerndoes nothing here

How to reach the signer (the server's --kern-sign-contact-info unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignNamestringMarqius Kerndoes nothing here

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignPadesbooleandefault trueMarqius Kerndoes nothing here

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignTimestampUrlstringan addressMarqius Kerndoes nothing here

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignFieldstringMarqius Kerndoes nothing here

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignBoxstringMarqius Kerndoes nothing here

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernTimestampUrlstringan addressMarqius Kerndoes nothing here

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

Answers 10
  • 200 The files: one as it is, several as a ZIP. application/octet-stream, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/extract-textGotenberg 9

Read PDFs' text

Answers each PDF's text, as plain text or Markdown, in reading order. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/extract-text -F files=@a.pdf -F format=markdown -o a.md
Form fields 21
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

pagesstringGotenberg 9

The pages read: 1-3,5, even, odd, last; all unless given.

formattext | markdowndefault textGotenberg 9

Plain text, or Markdown with headings, lists and tables.

invisiblebooleandefault falseGotenberg 9

Reads text drawn invisible too, such as a searchable scan's layer.

artifactsbooleandefault falseGotenberg 9

Reads the running heads and feet and the page numbers too.

annotationsbooleandefault falseGotenberg 9

Reads the text of form fields, comments and stamps too.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kerndoes nothing here

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignCertificatestringMarqius Kerndoes nothing here

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignKeystringMarqius Kerndoes nothing here

With a PEM certificate that holds no key: the name of the file sent with the key. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignCertificatePasswordstringMarqius Kerndoes nothing here

Opens the store or the key; never logged, never echoed. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignReasonstringMarqius Kerndoes nothing here

The reason the signature gives (the server's --kern-sign-reason unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignLocationstringMarqius Kerndoes nothing here

Where the signature says it was made (the server's --kern-sign-location unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignContactInfostringMarqius Kerndoes nothing here

How to reach the signer (the server's --kern-sign-contact-info unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignNamestringMarqius Kerndoes nothing here

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignPadesbooleandefault trueMarqius Kerndoes nothing here

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignTimestampUrlstringan addressMarqius Kerndoes nothing here

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignFieldstringMarqius Kerndoes nothing here

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignBoxstringMarqius Kerndoes nothing here

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernTimestampUrlstringan addressMarqius Kerndoes nothing here

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

Answers 10
  • 200 The text: Markdown, plain text or JSON, as format asks; several documents' texts as a ZIP (one JSON document for them all with format json). text/markdown, text/plain, application/json, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/renderGotenberg 9

Draw pages as pictures

Draws the pages as PNG or JPEG pictures, named by page. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/render -F files=@a.pdf -F dpi=72 -o page.png
Form fields 20
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

pagesstringGotenberg 9

The pages drawn: 1-3,5, even, odd, last; all unless given.

dpiintegerdefault 150at least 1Gotenberg 9

The pictures' resolution, in dots per inch.

formatpng | jpegdefault pngGotenberg 9

The pictures' format.

qualityinteger1 to 100Gotenberg 9

With jpeg: the quality, from 1 to 100.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kerndoes nothing here

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignCertificatestringMarqius Kerndoes nothing here

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignKeystringMarqius Kerndoes nothing here

With a PEM certificate that holds no key: the name of the file sent with the key. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignCertificatePasswordstringMarqius Kerndoes nothing here

Opens the store or the key; never logged, never echoed. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignReasonstringMarqius Kerndoes nothing here

The reason the signature gives (the server's --kern-sign-reason unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignLocationstringMarqius Kerndoes nothing here

Where the signature says it was made (the server's --kern-sign-location unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignContactInfostringMarqius Kerndoes nothing here

How to reach the signer (the server's --kern-sign-contact-info unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignNamestringMarqius Kerndoes nothing here

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignPadesbooleandefault trueMarqius Kerndoes nothing here

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignTimestampUrlstringan addressMarqius Kerndoes nothing here

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignFieldstringMarqius Kerndoes nothing here

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignBoxstringMarqius Kerndoes nothing here

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernTimestampUrlstringan addressMarqius Kerndoes nothing here

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

Answers 10
  • 200 The picture: PNG, JPEG or WebP, as format asks; several as a ZIP. image/png, image/jpeg, image/webp, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/stamp-textGotenberg 9

Stamp text on pages

Draws a line of text over the pages. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/stamp-text -F files=@a.pdf -F text=PAID -F position=top-right -F fontSize=36 -F color=#cc0000 -o paid.pdf
Form fields 26
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

textstringrequiredGotenberg 9

The text drawn.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

pagesstringGotenberg 9

The pages stamped: 1-3,5, even, odd, last; all unless given.

xnumberdefault 0Gotenberg 9

The stamp's place across, in points from the left (or from the position given).

ynumberdefault 0Gotenberg 9

Its place up, in points from the bottom (or from the position given).

positioncenter | top-left | top | top-right | left | right | bottom-left | bottom | bottom-rightGotenberg 9

Where on the page x and y count from.

rotationnumberdefault 0Gotenberg 9

Its angle, in degrees.

fontSizenumberdefault 12Gotenberg 9

The text's size, in points.

fontstringdefault HelveticaGotenberg 9

One of the 14 standard PDF fonts, such as Helvetica or Times-Roman.

colorstringa colour: #rrggbbGotenberg 9

The text's colour, as #rrggbb.

opacitynumber0 to 1Gotenberg 9

From 0 (clear) to 1.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/stamp-imageGotenberg 9

Stamp a picture on pages

Draws a picture sent with the request over the pages. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/chromium/screenshot/html -F files=@index.html -F width=400 -F height=120 -o logo.png
curl http://localhost:3000/forms/pdf/stamp-image -F files=@a.pdf -F files=@logo.png -F image=logo.png -F position=bottom-right -F width=200 -F height=60 -o stamped.pdf
Form fields 25
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

imagestringrequiredGotenberg 9

The name of the picture sent with the request.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

pagesstringGotenberg 9

The pages stamped: 1-3,5, even, odd, last; all unless given.

xnumberdefault 0Gotenberg 9

The stamp's place across, in points from the left (or from the position given).

ynumberdefault 0Gotenberg 9

Its place up, in points from the bottom (or from the position given).

positioncenter | top-left | top | top-right | left | right | bottom-left | bottom | bottom-rightGotenberg 9

Where on the page x and y count from.

rotationnumberdefault 0Gotenberg 9

Its angle, in degrees.

widthnumberGotenberg 9

The picture's width, in points.

heightnumberGotenberg 9

Its height, in points.

opacitynumber0 to 1Gotenberg 9

From 0 (clear) to 1.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/stamp-pdfGotenberg 9

Stamp a PDF's page on pages

Draws a page of a PDF sent with the request over the pages. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
mkdir -p cover && printf '<!doctype html><html><body style="background: #0b3d91"><h1 style="color: white">Cover</h1></body></html>' > cover/index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@cover/index.html -F printBackground=true -o cover.pdf
curl http://localhost:3000/forms/pdf/stamp-pdf -F files=@a.pdf -F files=@cover.pdf -F source=cover.pdf -F scale=0.25 -F position=bottom-right -o stamped.pdf
Form fields 25
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

sourcestringrequiredGotenberg 9

The name of the PDF sent with the request whose page is drawn.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

sourcePageintegerdefault 1at least 1Gotenberg 9

The page of it drawn.

pagesstringGotenberg 9

The pages stamped: 1-3,5, even, odd, last; all unless given.

xnumberdefault 0Gotenberg 9

The stamp's place across, in points from the left (or from the position given).

ynumberdefault 0Gotenberg 9

Its place up, in points from the bottom (or from the position given).

positioncenter | top-left | top | top-right | left | right | bottom-left | bottom | bottom-rightGotenberg 9

Where on the page x and y count from.

rotationnumberdefault 0Gotenberg 9

Its angle, in degrees.

scalenumberdefault 1Gotenberg 9

How many times as big it is drawn.

opacitynumber0 to 1Gotenberg 9

From 0 (clear) to 1.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/redactGotenberg 9

Redact PDFs

Takes the content under the regions named out of the pages, text and pictures alike, and covers the regions. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/redact -F files=@a.pdf -F 'regions=[{"page":1,"x":0,"y":700,"width":595,"height":142}]' -o redacted.pdf
Form fields 18
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

regionsJSONrequiredGotenberg 9

The regions taken out: a JSON array of objects with page, x, y, width and height (points from the lower left).

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

dropSignaturesbooleandefault falseGotenberg 9

true: a signed PDF has its signatures taken out, as the change would break them; otherwise a signed PDF is refused.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/set-formGotenberg 9

Fill in PDF forms

Fills in each PDF's form fields, drawing them as a viewer would, signatures kept. Off with --pdf-disable-routes.

cat > form.pdf <<'PDF'
%PDF-1.7
1 0 obj
<< /Type /Catalog /Pages 2 0 R /AcroForm << /Fields [4 0 R] /DA (/Helv 12 Tf 0 g) /DR << /Font << /Helv 5 0 R >> >> >> >>
endobj
2 0 obj
<< /Type /Pages /Kids [3 0 R] /Count 1 >>
endobj
3 0 obj
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 595 842] /Annots [4 0 R] /Contents 6 0 R /Resources << /Font << /Helv 5 0 R >> >> >>
endobj
4 0 obj
<< /Type /Annot /Subtype /Widget /FT /Tx /T (name) /V () /Rect [72 700 372 728] /P 3 0 R /F 4 /DA (/Helv 12 Tf 0 g) /MK << /BC [0 0 0] >> >>
endobj
5 0 obj
<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >>
endobj
6 0 obj
<< /Length 43 >>
stream
BT /Helv 14 Tf 72 740 Td (Your name:) Tj ET
endstream
endobj
xref
0 7
0000000000 65535 f 
0000000009 00000 n 
0000000146 00000 n 
0000000203 00000 n 
0000000347 00000 n 
0000000503 00000 n 
0000000600 00000 n 
trailer
<< /Size 7 /Root 1 0 R >>
startxref
693
%%EOF
PDF
curl http://localhost:3000/forms/pdf/set-form -F files=@form.pdf -F 'fields={"name":"Ada Lovelace"}' -o filled.pdf
Form fields 17
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

fieldsJSONrequiredGotenberg 9

The values, by field name: a JSON object; a check box takes its state's name, such as Yes or Off; a list that selects several takes an array.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/flatten-formGotenberg 9

Flatten PDF forms

Turns the form fields into the pages' own drawing. Off with --pdf-disable-routes.

cat > form.pdf <<'PDF'
%PDF-1.7
1 0 obj
<< /Type /Catalog /Pages 2 0 R /AcroForm << /Fields [4 0 R] /DA (/Helv 12 Tf 0 g) /DR << /Font << /Helv 5 0 R >> >> >> >>
endobj
2 0 obj
<< /Type /Pages /Kids [3 0 R] /Count 1 >>
endobj
3 0 obj
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 595 842] /Annots [4 0 R] /Contents 6 0 R /Resources << /Font << /Helv 5 0 R >> >> >>
endobj
4 0 obj
<< /Type /Annot /Subtype /Widget /FT /Tx /T (name) /V () /Rect [72 700 372 728] /P 3 0 R /F 4 /DA (/Helv 12 Tf 0 g) /MK << /BC [0 0 0] >> >>
endobj
5 0 obj
<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >>
endobj
6 0 obj
<< /Length 43 >>
stream
BT /Helv 14 Tf 72 740 Td (Your name:) Tj ET
endstream
endobj
xref
0 7
0000000000 65535 f 
0000000009 00000 n 
0000000146 00000 n 
0000000203 00000 n 
0000000347 00000 n 
0000000503 00000 n 
0000000600 00000 n 
trailer
<< /Size 7 /Root 1 0 R >>
startxref
693
%%EOF
PDF
curl http://localhost:3000/forms/pdf/set-form -F files=@form.pdf -F 'fields={"name":"Ada Lovelace"}' -o filled.pdf
curl http://localhost:3000/forms/pdf/flatten-form -F files=@filled.pdf -o flat.pdf
Form fields 17
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

dropSignaturesbooleandefault falseGotenberg 9

true: a signed PDF has its signatures taken out, as the change would break them; otherwise a signed PDF is refused.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/flatten-transparencyGotenberg 9

Flatten see-through drawing

Draws what is see-through as it looks, so that printers and PDF/A-1 take it; text stays text. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><div style="width: 300px; height: 120px; background: rgba(0, 90, 200, 0.4)">See-through</div></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -F printBackground=true -o a.pdf
curl http://localhost:3000/forms/pdf/flatten-transparency -F files=@a.pdf -o flat.pdf
Form fields 17
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

dropSignaturesbooleandefault falseGotenberg 9

true: a signed PDF has its signatures taken out, as the change would break them; otherwise a signed PDF is refused.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/convert-colorsGotenberg 9

Convert PDFs' colours

Draws the pages in one kind of colour: CMYK, RGB, grey, or the PDF's output intent. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/convert-colors -F files=@a.pdf -F target=gray -o gray.pdf
Form fields 18
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

targetcmyk | rgb | gray | output-intentrequiredGotenberg 9

The colours the pages are drawn in.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

dropSignaturesbooleandefault falseGotenberg 9

true: a signed PDF has its signatures taken out, as the change would break them; otherwise a signed PDF is refused.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/remediateGotenberg 9

Make PDFs PDF/A, PDF/UA or Factur-X

Makes each PDF a PDF/A level, accessible (PDF/UA, with a real structure), both, or a Factur-X invoice carrying the XML sent; what could not be met is said in the Gotenberg-Remediation-Residual header. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/remediate -F files=@a.pdf -F profile=PDF/A-2b -o archive.pdf
Form fields 24
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

profilestringGotenberg 9

What the PDF is made: a PDF/A level (PDF/A-1b to PDF/A-4f), PDF/UA-1 or 2, both as a JSON pair such as ["PDF/A-2b","PDF/UA-1"], or Factur-X.

languagestringGotenberg 9

The document's language, such as en-US; told from its words when not given.

aggressivebooleandefault falseGotenberg 9

Mends what a careful pass leaves, at the risk of changing how a page looks.

figureAltTextstringGotenberg 9

The alternative text given to figures that have none.

xmlstringGotenberg 9

With Factur-X: the name of the invoice's XML sent with the request.

levelMINIMUM | BASIC WL | BASIC | EN 16931 | EXTENDED | XRECHNUNGGotenberg 9

With Factur-X: the XML's profile, as the XML's guideline names it.

documentTypestringGotenberg 9

With Factur-X: what the XML is, such as INVOICE.

dropSignaturesbooleandefault falseGotenberg 9

true: a signed PDF has its signatures taken out, as the change would break them; otherwise a signed PDF is refused.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/autotagGotenberg 9

Tag PDFs

Reads untagged pages into a structure screen readers follow: headings, lists, tables, figures, links; running heads as artifacts. A tagged PDF keeps its own tree. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/autotag -F files=@a.pdf -o tagged.pdf
Form fields 16
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/signGotenberg 9

Sign PDFs

Signs each PDF, as an update added to its end, so that earlier signatures stay valid: PAdES or the classic adbe.pkcs7.detached, time-stamped when an authority is named. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
openssl req -x509 -newkey rsa:2048 -nodes -keyout key.pem -out cert.pem -days 1 -subj /CN=Example 2>/dev/null
curl http://localhost:3000/forms/pdf/sign -F files=@a.pdf -F files=@cert.pem -F files=@key.pem -F certificate=cert.pem -F key=key.pem -F reason=Approved -o signed.pdf
Form fields 25
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

certificatestringGotenberg 9

The name of the identity sent with the request: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key (or the key in key); the server's own unless given.

keystringGotenberg 9

With a PEM certificate that holds no key: the name of the file sent with its key.

certificatePasswordstringGotenberg 9

Opens the store or the key; never logged.

reasonstringGotenberg 9

The reason the signature gives.

locationstringGotenberg 9

Where it says it was made.

contactInfostringGotenberg 9

How to reach the signer.

namestringGotenberg 9

The signer's name.

padesbooleandefault falseGotenberg 9

Signs as PAdES; otherwise the classic adbe.pkcs7.detached.

timestampUrlstringan addressGotenberg 9

An RFC 3161 authority, http or https, that time-stamps the signature.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/timestampGotenberg 9

Time-stamp PDFs

Adds a document timestamp from an RFC 3161 authority, as an update added to the PDF's end. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/timestamp -F files=@a.pdf -F timestampUrl=http://timestamp.digicert.com -o timestamped.pdf
Form fields 17
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

timestampUrlstringan addressGotenberg 9

The RFC 3161 authority, http or https; the server's own unless given.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 501 What the request asks for, Marqius Kern does not do yet; the answer says what, before any work is done.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --pdf-disable-routes.

POST/forms/pdf/infoGotenberg 9

Read PDFs' facts

Each PDF's page count, version, size, encryption and form, as JSON by file name. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/info -F files=@a.pdf -o info.json
Form fields 17
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

passwordstringGotenberg 9

Opens password-protected PDFs.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kernchecked only

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignCertificatestringMarqius Kernchecked only

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignKeystringMarqius Kernchecked only

With a PEM certificate that holds no key: the name of the file sent with the key. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignCertificatePasswordstringMarqius Kernchecked only

Opens the store or the key; never logged, never echoed. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignReasonstringMarqius Kernchecked only

The reason the signature gives (the server's --kern-sign-reason unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignLocationstringMarqius Kernchecked only

Where the signature says it was made (the server's --kern-sign-location unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignContactInfostringMarqius Kernchecked only

How to reach the signer (the server's --kern-sign-contact-info unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignNamestringMarqius Kernchecked only

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignPadesbooleandefault trueMarqius Kernchecked only

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignTimestampUrlstringan addressMarqius Kernchecked only

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignFieldstringMarqius Kernchecked only

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignBoxstringMarqius Kernchecked only

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernTimestampUrlstringan addressMarqius Kernchecked only

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

Answers 6
  • 200 JSON. application/json
    {
      "report.pdf": {
        "encrypted": false,
        "formFields": false,
        "linearized": false,
        "pages": 1,
        "signed": false,
        "tagged": false,
        "version": "1.7"
      }
    }
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.

Turned off with --pdf-disable-routes.

POST/forms/pdf/metadataGotenberg 9

Read PDFs' metadata

Each PDF's metadata, as JSON by file name. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/metadata -F files=@a.pdf -o metadata.json
Form fields 17
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

passwordstringGotenberg 9

Opens password-protected PDFs.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kernchecked only

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignCertificatestringMarqius Kernchecked only

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignKeystringMarqius Kernchecked only

With a PEM certificate that holds no key: the name of the file sent with the key. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignCertificatePasswordstringMarqius Kernchecked only

Opens the store or the key; never logged, never echoed. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignReasonstringMarqius Kernchecked only

The reason the signature gives (the server's --kern-sign-reason unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignLocationstringMarqius Kernchecked only

Where the signature says it was made (the server's --kern-sign-location unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignContactInfostringMarqius Kernchecked only

How to reach the signer (the server's --kern-sign-contact-info unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignNamestringMarqius Kernchecked only

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignPadesbooleandefault trueMarqius Kernchecked only

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignTimestampUrlstringan addressMarqius Kernchecked only

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignFieldstringMarqius Kernchecked only

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignBoxstringMarqius Kernchecked only

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernTimestampUrlstringan addressMarqius Kernchecked only

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

Answers 6
  • 200 JSON. application/json
    {
      "report.pdf": {
        "author": "Ada",
        "creationDate": "D:20261130164915Z",
        "creator": "marqius",
        "modDate": "D:20261130164915Z",
        "producer": "marqius 0.12.18",
        "title": "Quarterly"
      }
    }
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.

Turned off with --pdf-disable-routes.

POST/forms/pdf/bookmarksGotenberg 9

Read PDFs' bookmarks

Each PDF's bookmarks, as JSON by file name. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/bookmarks -F files=@a.pdf -o bookmarks.json
Form fields 17
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

passwordstringGotenberg 9

Opens password-protected PDFs.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kernchecked only

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignCertificatestringMarqius Kernchecked only

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignKeystringMarqius Kernchecked only

With a PEM certificate that holds no key: the name of the file sent with the key. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignCertificatePasswordstringMarqius Kernchecked only

Opens the store or the key; never logged, never echoed. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignReasonstringMarqius Kernchecked only

The reason the signature gives (the server's --kern-sign-reason unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignLocationstringMarqius Kernchecked only

Where the signature says it was made (the server's --kern-sign-location unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignContactInfostringMarqius Kernchecked only

How to reach the signer (the server's --kern-sign-contact-info unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignNamestringMarqius Kernchecked only

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignPadesbooleandefault trueMarqius Kernchecked only

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignTimestampUrlstringan addressMarqius Kernchecked only

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignFieldstringMarqius Kernchecked only

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignBoxstringMarqius Kernchecked only

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernTimestampUrlstringan addressMarqius Kernchecked only

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

Answers 6
  • 200 JSON. application/json
    {
      "report.pdf": [
        {
          "children": [
            {
              "pageNumber": 1,
              "title": "Detail"
            }
          ],
          "pageNumber": 1,
          "title": "Start"
        }
      ]
    }
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.

Turned off with --pdf-disable-routes.

POST/forms/pdf/attachmentsGotenberg 9

List files carried in PDFs

The files each PDF carries, as JSON by file name. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
printf 'Shipped on Friday.\n' > note.txt
curl http://localhost:3000/forms/pdf/attach -F files=@a.pdf -F files=@note.txt -F file=note.txt -o with-note.pdf
curl http://localhost:3000/forms/pdf/attachments -F files=@with-note.pdf -o attachments.json
Form fields 17
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

passwordstringGotenberg 9

Opens password-protected PDFs.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kernchecked only

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignCertificatestringMarqius Kernchecked only

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignKeystringMarqius Kernchecked only

With a PEM certificate that holds no key: the name of the file sent with the key. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignCertificatePasswordstringMarqius Kernchecked only

Opens the store or the key; never logged, never echoed. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignReasonstringMarqius Kernchecked only

The reason the signature gives (the server's --kern-sign-reason unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignLocationstringMarqius Kernchecked only

Where the signature says it was made (the server's --kern-sign-location unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignContactInfostringMarqius Kernchecked only

How to reach the signer (the server's --kern-sign-contact-info unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignNamestringMarqius Kernchecked only

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignPadesbooleandefault trueMarqius Kernchecked only

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignTimestampUrlstringan addressMarqius Kernchecked only

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignFieldstringMarqius Kernchecked only

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignBoxstringMarqius Kernchecked only

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernTimestampUrlstringan addressMarqius Kernchecked only

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

Answers 6
  • 200 JSON. application/json
    {
      "with-note.pdf": [
        {
          "mimeType": "text/plain",
          "name": "note.txt"
        }
      ]
    }
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.

Turned off with --pdf-disable-routes.

POST/forms/pdf/formGotenberg 9

Read PDF forms

Each PDF's form fields, their kinds, values and choices, as JSON by file name. Off with --pdf-disable-routes.

cat > form.pdf <<'PDF'
%PDF-1.7
1 0 obj
<< /Type /Catalog /Pages 2 0 R /AcroForm << /Fields [4 0 R] /DA (/Helv 12 Tf 0 g) /DR << /Font << /Helv 5 0 R >> >> >> >>
endobj
2 0 obj
<< /Type /Pages /Kids [3 0 R] /Count 1 >>
endobj
3 0 obj
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 595 842] /Annots [4 0 R] /Contents 6 0 R /Resources << /Font << /Helv 5 0 R >> >> >>
endobj
4 0 obj
<< /Type /Annot /Subtype /Widget /FT /Tx /T (name) /V () /Rect [72 700 372 728] /P 3 0 R /F 4 /DA (/Helv 12 Tf 0 g) /MK << /BC [0 0 0] >> >>
endobj
5 0 obj
<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >>
endobj
6 0 obj
<< /Length 43 >>
stream
BT /Helv 14 Tf 72 740 Td (Your name:) Tj ET
endstream
endobj
xref
0 7
0000000000 65535 f 
0000000009 00000 n 
0000000146 00000 n 
0000000203 00000 n 
0000000347 00000 n 
0000000503 00000 n 
0000000600 00000 n 
trailer
<< /Size 7 /Root 1 0 R >>
startxref
693
%%EOF
PDF
curl http://localhost:3000/forms/pdf/form -F files=@form.pdf -o form.json
Form fields 18
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

passwordstringGotenberg 9

Opens password-protected PDFs.

pagesstringGotenberg 9

Only the fields on these pages: 1-3,5.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kernchecked only

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignCertificatestringMarqius Kernchecked only

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignKeystringMarqius Kernchecked only

With a PEM certificate that holds no key: the name of the file sent with the key. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignCertificatePasswordstringMarqius Kernchecked only

Opens the store or the key; never logged, never echoed. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignReasonstringMarqius Kernchecked only

The reason the signature gives (the server's --kern-sign-reason unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignLocationstringMarqius Kernchecked only

Where the signature says it was made (the server's --kern-sign-location unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignContactInfostringMarqius Kernchecked only

How to reach the signer (the server's --kern-sign-contact-info unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignNamestringMarqius Kernchecked only

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignPadesbooleandefault trueMarqius Kernchecked only

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignTimestampUrlstringan addressMarqius Kernchecked only

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignFieldstringMarqius Kernchecked only

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignBoxstringMarqius Kernchecked only

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernTimestampUrlstringan addressMarqius Kernchecked only

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

Answers 6
  • 200 JSON. application/json
    {
      "form.pdf": [
        {
          "name": "name",
          "pages": [
            1
          ],
          "type": "text",
          "value": ""
        }
      ]
    }
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.

Turned off with --pdf-disable-routes.

POST/forms/pdf/validateGotenberg 9

Check PDFs against a standard

Checks each PDF against a PDF/A, PDF/UA or Factur-X profile, with rules named as veraPDF names them, as JSON by file name. Off with --pdf-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/pdf/validate -F files=@a.pdf -F profile=PDF/A-2b -o report.json
Form fields 18
filesfilesrequiredGotenberg 9

The PDFs, taken in the order of their names (numbers compared as numbers), and the files an operation names: a picture, a PDF to insert, an invoice's XML.

profilestringrequiredGotenberg 9

The profile checked: a PDF/A level, PDF/UA-1 or 2, or Factur-X; sent twice, or as a JSON pair, for PDF/A with PDF/UA.

archivesfilesGotenberg 9

ZIP files whose contents are taken as if each file had been sent itself.

passwordstringGotenberg 9

Opens password-protected PDFs.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kernchecked only

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignCertificatestringMarqius Kernchecked only

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignKeystringMarqius Kernchecked only

With a PEM certificate that holds no key: the name of the file sent with the key. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignCertificatePasswordstringMarqius Kernchecked only

Opens the store or the key; never logged, never echoed. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignReasonstringMarqius Kernchecked only

The reason the signature gives (the server's --kern-sign-reason unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignLocationstringMarqius Kernchecked only

Where the signature says it was made (the server's --kern-sign-location unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignContactInfostringMarqius Kernchecked only

How to reach the signer (the server's --kern-sign-contact-info unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignNamestringMarqius Kernchecked only

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignPadesbooleandefault trueMarqius Kernchecked only

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent). Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignTimestampUrlstringan addressMarqius Kernchecked only

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignFieldstringMarqius Kernchecked only

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernSignBoxstringMarqius Kernchecked only

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernTimestampUrlstringan addressMarqius Kernchecked only

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

Answers 6
  • 200 JSON. application/json
    {
      "report.pdf": {
        "compliant": false,
        "profile": "PDF/A-2b",
        "violations": [
          {
            "clause": "6.6.4",
            "context": "catalog Metadata",
            "description": "The PDF/A version and conformance level shall be given with the PDF/A identification schema",
            "severity": "fatal",
            "specification": "ISO 19005-2:2011",
            "testNumber": 1
          }
        ]
      }
    }
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 413 The request is larger than --api-body-limit allows.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.

Turned off with --pdf-disable-routes.

Marqius Kern

Marqius Kern's own routes: emails to PDF, scans made searchable, any document as Markdown, and this document.

POST/forms/kern/convert/emailMarqius Kern

Convert emails to PDF

Makes emails and mailboxes into PDFs that keep them whole; what did not reach the pages is said in the X-Marqius-Kern-Note header. Off with --kern-disable-routes.

printf 'From: Ada <ada@example.com>\nTo: Bob <bob@example.com>\nSubject: Hello\nDate: Mon, 30 Nov 2026 10:00:00 +0000\nContent-Type: text/plain; charset=utf-8\n\nThe report is attached in spirit.\n' > hello.eml
curl http://localhost:3000/forms/kern/convert/email -F files=@hello.eml -o hello-email.pdf
Form fields 52
filesfilesrequiredMarqius Kern

Emails (.eml, .msg) and mailboxes (.mbox, .pst, .ost).

profilearchive | court | plaindefault archiveMarqius Kern

archive: an EA-PDF with the message and its attachments inside; court: for filing; plain: the message alone.

kernReportbooleandefault falseMarqius Kern

Answers a ZIP of the PDFs and report.json: what each email became and what did not reach its pages.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

splitModeintervals | pagesGotenberg 8

Splits the PDF: intervals into parts of splitSpan pages, pages into the pages splitSpan names. Several parts are answered as a ZIP.

splitSpanstringGotenberg 8

The pages of each part: a number of pages for intervals, page ranges (1-3, 5) for pages.

splitUnifybooleandefault falseGotenberg 8

With splitMode pages: the pages chosen in one PDF instead of one PDF each.

metadataJSONGotenberg 8

The PDF's metadata to write: {"Author": "…", "Title": "…", "Keywords": ["…"]}.

flattenbooleandefault falseGotenberg 8

Turns form fields and annotations into the page's own drawing.

userPasswordstringGotenberg 8

The password that opens the PDF.

ownerPasswordstringGotenberg 8

The password that lifts the PDF's restrictions.

allowPrintingbooleandefault trueGotenberg 8

With a password: printing allowed.

allowModifyingbooleandefault trueGotenberg 8

With a password: changes allowed.

allowCopyingbooleandefault trueGotenberg 8

With a password: copying text and pictures allowed.

allowAnnotatingbooleandefault trueGotenberg 8

With a password: comments allowed.

allowFillingFormsbooleandefault trueGotenberg 8

With a password: filling in forms allowed.

allowAssemblingbooleandefault trueGotenberg 8

With a password: inserting, rotating and deleting pages allowed.

stampfilesGotenberg 8

A picture or a PDF drawn over the pages (stampSource image or pdf).

stampSourcetext | image | pdfGotenberg 8

What the stamp is: text (stampExpression), or the picture or PDF sent as stamp.

stampExpressionstringGotenberg 8

The stamp's text, or the name of its file.

stampPagesstringGotenberg 8

The pages stamped: 1-3, 5; all when not given.

stampOptionsJSONGotenberg 8

How the stamp is drawn: {"font": "Helvetica", "fontSize": 24, "color": "#ff0000", "opacity": 0.5, "rotation": 45, "position": "center"}.

watermarkfilesGotenberg 8

A picture or a PDF drawn under the pages' content (watermarkSource image or pdf).

watermarkSourcetext | image | pdfGotenberg 8

What the watermark is: text (watermarkExpression), or the picture or PDF sent as watermark.

watermarkExpressionstringGotenberg 8

The watermark's text, or the name of its file.

watermarkPagesstringGotenberg 8

The pages watermarked: 1-3, 5; all when not given.

watermarkOptionsJSONGotenberg 8

How the watermark is drawn, as for stampOptions.

rotateAngle90 | 180 | 270Gotenberg 8

Turns the pages by this angle, clockwise.

rotatePagesstringGotenberg 8

With rotateAngle: the pages turned: 1-3, 5; all when not given.

optimizeImagesbooleandefault falseGotenberg 8

Packs the pictures again as JPEG, for a smaller file.

imageQualityinteger1 to 100Gotenberg 8

With optimizeImages: the JPEG quality, from 1 to 100.

kernOcrtrue | false | autodefault falseMarqius Kern

true (or auto): the pages that need it (scans: little text and a large picture) are read and laid over with hidden text, so the PDF can be searched and copied; the pages look as they did. The summary is in the X-Marqius-Kern-Ocr header.

kernOcrEnginestringMarqius Kern

The engine that reads: Marqius Kern's own (the server's --kern-ocr-engine unless sent: ppocr-v6-tiny; ppocr-v6-small reads more accurately), tesseract, a folder added with marqius-kern ocr add, or an OCR server's name (--kern-ocr-server).

kernOcrLanguagesstringMarqius Kern

The languages or scripts on the pages, comma-separated (ara, heb, hi, korean...): the default engine is swapped for Marqius Kern's engine that reads them.

kernOcrPagesstringMarqius Kern

The pages to read if they need it: 1-3,5, even, odd, !1; all unless sent.

kernOcrOptionalbooleandefault falseMarqius Kern

When OCR cannot run (no engine, a model not fetched yet), the file is answered as it is, with a note, instead of an error.

pdfastringGotenberg 8checked only

Read only to refuse passwords with it, as Gotenberg refuses PDF/A with encryption: the profile decides what kind of PDF each email becomes. Marqius Kern checks the value (a wrong one is refused, in Gotenberg's words); it changes nothing in Marqius Kern's answer.

kernFontReportbooleanMarqius Kern

Says in the X-Marqius-Kern-Fonts header which fonts each conversion used, their files, and what stood in for what (the server's --kern-font-report unless sent).

kernRequireFontsstringMarqius Kern

Families this request must have, comma-separated: a conversion that cannot have one is refused (409) instead of printed in another font.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 10
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 409 A failOn… check failed (the page or a file it loads answered an error, the console said what the request refuses), or a font the request requires is missing.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --kern-disable-routes.

POST/forms/kern/ocrMarqius Kern

Make scans searchable

Scans (PDFs and pictures) as searchable PDFs: each page read and laid over with hidden text, the pages as they were; several documents are answered as a ZIP. The summary is in the X-Marqius-Kern-Ocr header. Off with --kern-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/screenshot/html -F files=@index.html -o scan.png
curl http://localhost:3000/forms/kern/ocr -F files=@scan.png -o searchable.pdf
Form fields 50
filesfilesrequiredMarqius Kern

The scans: PDFs and pictures (TIFF, of one page or many; JPEG, PNG, WebP, GIF, BMP), each answered as a PDF; with kernOcrFrom, the results beside them (scan.hocr for scan.pdf).

kernOcrEnginestringMarqius Kern

The engine that reads: Marqius Kern's own (the server's --kern-ocr-engine unless sent: ppocr-v6-tiny; ppocr-v6-small reads more accurately), tesseract, a folder added with marqius-kern ocr add, or an OCR server's name (--kern-ocr-server).

kernOcrLanguagesstringMarqius Kern

The languages or scripts on the pages, comma-separated (ara, heb, hi, korean...): the default engine is swapped for Marqius Kern's engine that reads them.

kernOcrPagesstringMarqius Kern

The pages to read if they need it: 1-3,5, even, odd, !1; all unless sent.

kernOcrOptionalbooleandefault falseMarqius Kern

When OCR cannot run (no engine, a model not fetched yet), the file is answered as it is, with a note, instead of an error.

kernOcrFromhocr | alto | jsonMarqius Kern

Builds the layer from another engine's results sent with the documents (scan.hocr beside scan.pdf) instead of reading.

pdfaPDF/A-1b | PDF/A-2b | PDF/A-2u | PDF/A-3b | PDF/A-3u | PDF/A-4Marqius Kern

The PDF/A level, Marqius Kern's PDF/A-2u and 3u included, where every letter of the text keeps its Unicode meaning.

pdfuabooleandefault falseMarqius Kern

Makes the PDFs accessible (PDF/UA).

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

splitModeintervals | pagesGotenberg 8

Splits the PDF: intervals into parts of splitSpan pages, pages into the pages splitSpan names. Several parts are answered as a ZIP.

splitSpanstringGotenberg 8

The pages of each part: a number of pages for intervals, page ranges (1-3, 5) for pages.

splitUnifybooleandefault falseGotenberg 8

With splitMode pages: the pages chosen in one PDF instead of one PDF each.

metadataJSONGotenberg 8

The PDF's metadata to write: {"Author": "…", "Title": "…", "Keywords": ["…"]}.

flattenbooleandefault falseGotenberg 8

Turns form fields and annotations into the page's own drawing.

userPasswordstringGotenberg 8

The password that opens the PDF.

ownerPasswordstringGotenberg 8

The password that lifts the PDF's restrictions.

allowPrintingbooleandefault trueGotenberg 8

With a password: printing allowed.

allowModifyingbooleandefault trueGotenberg 8

With a password: changes allowed.

allowCopyingbooleandefault trueGotenberg 8

With a password: copying text and pictures allowed.

allowAnnotatingbooleandefault trueGotenberg 8

With a password: comments allowed.

allowFillingFormsbooleandefault trueGotenberg 8

With a password: filling in forms allowed.

allowAssemblingbooleandefault trueGotenberg 8

With a password: inserting, rotating and deleting pages allowed.

stampfilesGotenberg 8

A picture or a PDF drawn over the pages (stampSource image or pdf).

stampSourcetext | image | pdfGotenberg 8

What the stamp is: text (stampExpression), or the picture or PDF sent as stamp.

stampExpressionstringGotenberg 8

The stamp's text, or the name of its file.

stampPagesstringGotenberg 8

The pages stamped: 1-3, 5; all when not given.

stampOptionsJSONGotenberg 8

How the stamp is drawn: {"font": "Helvetica", "fontSize": 24, "color": "#ff0000", "opacity": 0.5, "rotation": 45, "position": "center"}.

watermarkfilesGotenberg 8

A picture or a PDF drawn under the pages' content (watermarkSource image or pdf).

watermarkSourcetext | image | pdfGotenberg 8

What the watermark is: text (watermarkExpression), or the picture or PDF sent as watermark.

watermarkExpressionstringGotenberg 8

The watermark's text, or the name of its file.

watermarkPagesstringGotenberg 8

The pages watermarked: 1-3, 5; all when not given.

watermarkOptionsJSONGotenberg 8

How the watermark is drawn, as for stampOptions.

rotateAngle90 | 180 | 270Gotenberg 8

Turns the pages by this angle, clockwise.

rotatePagesstringGotenberg 8

With rotateAngle: the pages turned: 1-3, 5; all when not given.

optimizeImagesbooleandefault falseGotenberg 8

Packs the pictures again as JPEG, for a smaller file.

imageQualityinteger1 to 100Gotenberg 8

With optimizeImages: the JPEG quality, from 1 to 100.

kernOcrtrue | false | autodefault falseMarqius Kern

true (or auto): the pages that need it (scans: little text and a large picture) are read and laid over with hidden text, so the PDF can be searched and copied; the pages look as they did. The summary is in the X-Marqius-Kern-Ocr header.

kernSignbooleanMarqius Kern

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent).

kernSignCertificatestringMarqius Kern

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once.

kernSignKeystringMarqius Kern

With a PEM certificate that holds no key: the name of the file sent with the key.

kernSignCertificatePasswordstringMarqius Kern

Opens the store or the key; never logged, never echoed.

kernSignReasonstringMarqius Kern

The reason the signature gives (the server's --kern-sign-reason unless sent).

kernSignLocationstringMarqius Kern

Where the signature says it was made (the server's --kern-sign-location unless sent).

kernSignContactInfostringMarqius Kern

How to reach the signer (the server's --kern-sign-contact-info unless sent).

kernSignNamestringMarqius Kern

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent).

kernSignPadesbooleandefault trueMarqius Kern

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent).

kernSignTimestampUrlstringan addressMarqius Kern

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent.

kernSignFieldstringMarqius Kern

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field.

kernSignBoxstringMarqius Kern

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60.

kernTimestampUrlstringan addressMarqius Kern

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise.

Answers 11
  • 200 The PDF; several (a split, or several documents not merged) as a ZIP. application/pdf, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 403 The address lists refuse an address the request makes the server fetch: Forbidden; the log says why.
  • 409 A failOn… check failed (the page or a file it loads answered an error, the console said what the request refuses), or a font the request requires is missing.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --kern-disable-routes.

POST/forms/kern/extract/markdownMarqius Kern

Read documents as Markdown

Any document Marqius Kern converts, and emails, as Markdown (or plain text, or JSON) in reading order, with no PDF made from it: for search, AI agents and no-code tools. What could not be read (a scanned page, a hidden sheet) is said in the X-Marqius-Kern-Note header. Off with --kern-disable-routes.

printf '<!doctype html><html><body><h1>Hello</h1><p>Made by marqius-kern.</p></body></html>' > index.html
curl http://localhost:3000/forms/chromium/convert/html -F files=@index.html -o a.pdf
curl http://localhost:3000/forms/kern/extract/markdown -F files=@a.pdf -o a.md
Form fields 23
filesfilesrequiredMarqius Kern

The documents: PDF, Word, Excel, PowerPoint, OpenDocument, RTF, Word 97-2003, text, HTML and Markdown, and emails (.eml, .msg).

formatmarkdown | text | jsondefault markdownMarqius Kern

markdown; text, plain; or json, one document for them all: each file's name, kind, title and pages, its whole text and each part's (page, slide, sheet, attachment), and what could not be read.

pagesstringMarqius Kern

A PDF's pages: 1-3,5, even, !last.

pageMarksbooleandefault trueMarqius Kern

In Markdown, <!-- page 3 --> before each page of a PDF.

annotationsbooleandefault trueMarqius Kern

The text of form fields, comments and stamps, as a viewer shows it.

artifactsbooleandefault falseMarqius Kern

The running heads and feet and the page numbers.

invisiblebooleanMarqius Kern

Text drawn invisible: true reads every page's, false none. Unless sent, only a searchable scan's text under its picture is read, since invisible text elsewhere can hide words from the people who read the page.

asTextbooleandefault falseMarqius Kern

With format json: the text in it as plain text, not Markdown.

passwordstringMarqius Kern

Opens a password-protected Office or OpenDocument file.

downloadFromJSONGotenberg 8

Files to fetch first, as if they had been sent with the request: a list of objects with a url and, optionally, extraHttpHeaders and embedded (true: carried inside the PDF as an attachment). Fetched as the server's --api-download-from-* rules allow.

kernSignbooleanMarqius Kerndoes nothing here

Signs the PDFs with the server's key (--kern-sign-certificate); false leaves them unsigned on a server that signs every PDF (--kern-sign-all, which is the default unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignCertificatestringMarqius Kerndoes nothing here

The name of a file sent with the request to sign with: a PKCS #12 store (.p12, .pfx), or a PEM certificate with its key, or with the key in kernSignKey. The file is taken out of the request's files: never converted, and gone from the disk at once. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignKeystringMarqius Kerndoes nothing here

With a PEM certificate that holds no key: the name of the file sent with the key. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignCertificatePasswordstringMarqius Kerndoes nothing here

Opens the store or the key; never logged, never echoed. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignReasonstringMarqius Kerndoes nothing here

The reason the signature gives (the server's --kern-sign-reason unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignLocationstringMarqius Kerndoes nothing here

Where the signature says it was made (the server's --kern-sign-location unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignContactInfostringMarqius Kerndoes nothing here

How to reach the signer (the server's --kern-sign-contact-info unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignNamestringMarqius Kerndoes nothing here

The signer's name, as the signature gives it (the server's --kern-sign-name unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignPadesbooleandefault trueMarqius Kerndoes nothing here

Signs as PAdES; false: the classic adbe.pkcs7.detached (the server's --kern-sign-pades unless sent). It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignTimestampUrlstringan addressMarqius Kerndoes nothing here

An RFC 3161 time-stamp authority, http or https, that stamps the signature's time (PAdES B-T); the server's --kern-sign-timestamp-url unless sent. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignFieldstringMarqius Kerndoes nothing here

Signs the PDF's empty signature field of this name, where that field is drawn; or names the new field. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernSignBoxstringMarqius Kerndoes nothing here

Shows the signature in this box: page:left,bottom,width,height in points, the page 1, 2... or last, such as 1:36,36,200,60. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

kernTimestampUrlstringan addressMarqius Kerndoes nothing here

A document timestamp from this RFC 3161 authority, http or https: after the signature when there is one, alone otherwise. It does nothing on this route: Marqius Kern says so in the X-Marqius-Kern-Note header.

Answers 10
  • 200 The text: Markdown, plain text or JSON, as format asks; several documents' texts as a ZIP (one JSON document for them all with format json). text/markdown, text/plain, application/json, application/zip
  • 204 The request is accepted: its result is sent to Gotenberg-Webhook-Url, or its failure to Gotenberg-Webhook-Error-Url.
  • 400 A form field or a header is missing or wrong, in Gotenberg's words.
    Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing "foo": invalid syntax)
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 409 A failOn… check failed (the page or a file it loads answered an error, the console said what the request refuses), or a font the request requires is missing.
  • 413 The request is larger than --api-body-limit allows.
  • 429 The queue for this kind of conversion is full; try again shortly.
  • 500 Something else failed; the request's trace identifier finds it in the log.
  • 503 The request took longer than --api-timeout, or the server is stopping.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.
Webhooks 3
  • The result, sent to your address {$request.header.Gotenberg-Webhook-Url}
    Once made, the result is sent here with the method Gotenberg-Webhook-Method names (POST unless PUT or PATCH), its Content-Disposition naming the file, your trace identifier in its header, and the headers of Gotenberg-Webhook-Extra-Http-Headers. The request itself was answered 204 at once.
  • A failure, sent to your address {$request.header.Gotenberg-Webhook-Error-Url}
    When the request cannot be answered, the status it would have had and why, with Gotenberg-Webhook-Error-Method (POST unless PUT or PATCH).
    {
      "message": "Invalid form data: form field 'scale' is invalid (got 'foo', resulting to strconv.ParseFloat: parsing \"foo\": invalid syntax)",
      "status": 400
    }
  • Each outcome, sent to your address {$request.header.Gotenberg-Webhook-Events-Url}
    webhook.success once the result is sent, webhook.error once a failure is, each with your trace identifier.
    {
      "correlationId": "4f6c8a3e-2b1d-4c7e-9a5f-1e2d3c4b5a69",
      "event": "webhook.success",
      "timestamp": "2026-11-30T16:49:15.315Z"
    }

Turned off with --kern-disable-routes.

GET/forms/kern/openapi.yamlMarqius Kern

Marqius Kern's OpenAPI document

This document, as YAML: the routes this server answers, and every field each reads. Off with --kern-disable-routes.

curl http://localhost:3000/forms/kern/openapi.yaml -o kern-openapi.yaml
Answers 3
  • 200 Marqius Kern's OpenAPI document. application/yaml
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.

Turned off with --kern-disable-routes.

GET/forms/kern/openapi.jsonMarqius Kern

Marqius Kern's OpenAPI document, as JSON

This document, as JSON. Off with --kern-disable-routes.

curl http://localhost:3000/forms/kern/openapi.json -o kern-openapi.json
Answers 3
  • 200 Marqius Kern's OpenAPI document. application/json
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.

Turned off with --kern-disable-routes.

System

The server's own: whether it is up, its version, its metrics.

GET/Gotenberg 8

Root

Gotenberg's root sentence, word for word.

curl http://localhost:3000/
Answers 2
  • 200 HTML. text/html
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
GET/healthGotenberg 8

Health

Whether the server is up: {"status":"up","details":{...}}. Never behind authentication.

curl http://localhost:3000/health
Answers 1
  • 200 JSON. application/json
    {
      "details": {
        "chromium": {
          "status": "up",
          "timestamp": "2026-11-30T16:49:15.315Z"
        },
        "libreoffice": {
          "status": "up",
          "timestamp": "2026-11-30T16:49:15.315Z"
        }
      },
      "status": "up"
    }
GET/versionGotenberg 8

Version

The version of Gotenberg's API answered: 8.40.0 (the Gotenberg-Version header says the same, X-Marqius-Kern names Marqius Kern's own).

curl http://localhost:3000/version
Answers 2
  • 200 Plain text. text/plain
    "8.40.0"
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
GET/prometheus/metricsGotenberg 8

Metrics

The server's metrics in Prometheus's text format, named under --prometheus-namespace (gotenberg): the queues, and the conversions and their times. --prometheus-metrics-path moves the route. Off with --prometheus-disable-collect.

curl http://localhost:3000/prometheus/metrics
Answers 3
  • 200 Plain text. text/plain
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.
  • 404 The route is off on this server, or there is no such route: {"message":"Not Found"}.

Turned off with --prometheus-disable-collect.

GET/debugGotenberg 8

Debug

The server's version, settings and modules as JSON, as Gotenberg's debug route gives them. Answered only with --api-enable-debug-route.

# (a server started with --api-enable-debug-route)
curl http://localhost:3000/debug
Answers 2
  • 200 JSON. application/json
  • 401 The credentials are missing or wrong, with --api-enable-basic-auth on.