Default (zero margins)
Renders content edge-to-edge. Best for full-bleed designs or when you fully control your own internal padding in HTML.
POST https://pdf.bizkithub.com/generator
A4 with print-safe margins (recommended for multi-page documents)
Enables consistent per-page margins so page breaks don’t clip content.
POST https://pdf.bizkithub.com/generator?autoHeight=true
Custom narrow page width with print-safe margins (receipt-like pagination)
Useful for narrow documents that can still paginate (e.g. very long receipts or logs).
POST https://pdf.bizkithub.com/generator?autoHeight=true&width=80mm
Receipt mode: single page height derived from content
Ideal for thermal receipts: no pagination, height is computed from rendered content.
POST https://pdf.bizkithub.com/generator?autoHeight=true&fitHeight=true&width=80mm&margin=2mm
Custom margin size (small margins for receipts)
Override margins when autoHeight is enabled. Accepts CSS shorthand (1–4 values).
POST https://pdf.bizkithub.com/generator?autoHeight=true&width=80mm&margin=2mm
Explicit page size using width + height
For fully controlled page sizing (e.g. labels, tickets).
POST https://pdf.bizkithub.com/generator?autoHeight=true&width=100mm&height=150mm&margin=4mm
Tip: in multi-page mode, keep your HTML layout “print friendly” (avoid fixed-height containers for long content). For receipts in fitHeight mode, keep content width responsive and let text wrap naturally.