builder

command
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package main demonstrates the GxPDF Builder API for declarative PDF generation.

The Builder API provides a high-level, 12-column grid layout system for constructing professional documents. It sits on top of the layout engine and the creator package, connecting them through a clean declarative DSL.

This example generates a two-page business report that demonstrates:

  • Document-level configuration (page size, margins, metadata)
  • Page header and footer zones with page numbers
  • Horizontal separator lines with custom colors
  • 12-column grid layout via Row/Col
  • Text styling: Bold, FontSize, TextColor, AlignCenter, AlignRight
  • Vertical spacing with Spacer
  • Row background colors for visual grouping
  • Explicit PageBreak to start a new page
  • KeepTogether to prevent section splits across pages
  • Real Table API with header repeat, zebra stripes, ColSpan, cell padding

Jump to

Keyboard shortcuts

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