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