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
Click to show internal directories.
Click to hide internal directories.