Tickets & labels

Not every PDF is a page of A4. Tickets, badges, and shipping labels need precise, small formats and exact placement.

Why PDF Server fits

  • Exact page size via CSS @page { size: … } with preferCSSPageSize, or explicit paperWidth/ paperHeight in inches.
  • Barcodes / QR codes rendered as SVG or inlined as data URIs with the embed_base64 helper.
  • Zero margins for edge-to-edge label stock.

Shape

@page { size: 4in 6in; margin: 0; }
{ "pdf": { "preferCSSPageSize": true, "printBackground": true } }
<img src="data:image/svg+xml;base64,{{embed_base64 "qr.svg"}}">
<div class="addr">{{recipient.name}}<br>{{recipient.street}}</div>

One template, many labels — render per item, or batch several onto one sheet with a composition.