invoice

command
v0.53.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL