Render PDF (authenticated)
Convert HTML or a public URL to PDF. Exactly one of html or url.
Optional Chromium controls include SPA waits, cookies, extra headers,
paper sizes, sandbox (watermarked, unmetered), page ranges, CSS/JS
inject, Basic auth, metadata, emulate_media, raise_for_status,
and lazy_load_images.
Authorizations
Create a spool_live_… key at spoolpdf.nandra.dev/keys.
Send it as Authorization: Bearer <key>.
Body
Exactly one of html or url must be provided.
HTML document to render
Public URL to render
Paper format. Named sizes: A0–A6, Letter, Legal, Tabloid, Ledger
(default A4). Or {width}x{height} with optional units, e.g.
210mmx297mm or 11x17 (inches when omitted). Height auto
(1024xauto, 210mmxauto) renders a single scrolling page;
unitless width is pixels (÷96 → inches).
Overrides format width (Gotenberg units, e.g. 8.5in). Must be paired with paper_height.
Overrides format height. Must be paired with paper_width.
Render scale (default 1)
Alias for scale when scale is unset
Pause before print (Go duration, e.g. 2s or 500ms). Max 30s.
CSS selector; Chromium waits until a matching element exists.
JavaScript expression; Chromium waits until it is truthy.
When true, wait for Chromium network idle (0 connections for 500ms).
Headers Chromium sends while loading the page (URL assets included).
Cookie and hop-by-hop names are rejected; use cookies for Cookie.
Watermarked PDF; does not increment usage. Response includes
X-Sandbox: true and omits X-Usage-Count. Still uses a
concurrency slot.
Page ranges to keep, e.g. 1-3,6. Cannot combine with single_page or auto height.
One continuous page (also implied by {width}xauto format).
Chromium media type. Default is print.
print, screen Inline CSS or a public http(s) stylesheet URL (SSRF-checked).
Inline JS or a public http(s) script URL (SSRF-checked).
true fails on 3xx/4xx/5xx of the main URL. false allows error
pages. Omit to keep Gotenberg default (fail on 4xx/5xx).
HTTP Basic auth for the page URL. Conflicts with extra_http_headers Authorization.
Scroll the page so lazy-loaded images fetch before print.
Response
PDF bytes
The response is of type file.