Parameters
JSON body
Request body
application/jsonhtmlContentstringRequiredHTML content to render into PDF. This is sent as the generator request body (compressed).
<!doctype html><html><body><h1>Invoice #123</h1></body></html>filenamestringRequiredOriginal filename. The service normalizes it, appends a random suffix, and forces the .pdf extension.
invoice-123.pdftagstringOptionalOptional storage tag (internal metadata label).
invoicecontractreportformatstringOptionalStandard paper format (e.g. A4, Letter, …). Used when width is not set. Default is A4.
A4LetterwidthstringOptionalCustom page width (CSS length, e.g. 80mm, 210mm, 800px). When set, it overrides format.
80mm210mm800pxheightstringOptionalCustom page height (CSS length). Used in fixed-size mode. When width is set and fitHeight is not enabled, height defaults like A4 height behavior.
150mm297mmautoHeightbooleanOptionalEnables print-safe margins consistently across pages (improves page breaks and prevents edge clipping).
truemarginstringOptionalOverrides margin size when autoHeight=true. CSS shorthand (1–4 values), e.g. "12mm 10mm" or "2mm".
12mm 10mm2mmfitHeightbooleanOptionalReceipt mode: generates a single-page PDF whose height is derived from rendered content. Works best with width (e.g. 80mm).
trueuuidstringOptionalOptional identifier stored in PDF metadata keywords.
order_123invoice_2026_0001authorstringOptionalOptional author label in PDF metadata (Author/Creator/Producer). If omitted, defaults to organisation name.
BizKitHubJan BarášekdebugbooleanOptionalAdds debug CSS borders to the rendered HTML for layout inspection (internal).
true