Documentation
¶
Overview ¶
Example: Thai Tax Invoice / Receipt (ใบกำกับภาษี/ใบเสร็จรับเงิน)
Demonstrates a realistic single-page A4 business document with:
- Bilingual (Thai/English) labels rendered with the bundled Sarabun font
- Built-in Thai word segmentation for proper line wrapping
- PNG → JPEG conversion at runtime so an existing PNG asset can be embedded via presspdf.Document.RegisterImage (which only accepts JPEG)
- Filled header bar, two-column party block, line-items table with zebra striping, totals block with VAT 7%, and signature lines
Run from the repo root:
go run ./examples/invoice
Click to show internal directories.
Click to hide internal directories.