Versions in this module Expand all Collapse all v0 v0.2.6 Dec 5, 2026 v0.2.5 Dec 5, 2026 Changes in this version + const Width + var Blue = creator.Color + var Green = creator.Color + var Ink = creator.Color + var Muted = creator.Color + var Orange = creator.Color + var Red = creator.Color + func FromOutput(output string) (string, bool) + func ThemeByName(name string) (flow.Theme, error) + func WriteOFD(ctx context.Context, w io.Writer, document *creator.Document) error + func WritePDF(ctx context.Context, w io.Writer, document *creator.Document) error + type Builder struct + Document *flow.Document + func New(ctx context.Context, metadata creator.Document, fontPath string, ...) (*Builder, error) + func NewWithFonts(ctx context.Context, metadata creator.Document, fonts *Fonts, ...) (*Builder, error) + func (b *Builder) Block(kind string, level int, text string, style flow.TextStyle) + func (b *Builder) Build() (*creator.Document, error) + func (b *Builder) Callout(variant, title, text string) + func (b *Builder) Heading(level int, text string, color *creator.Color) + func (b *Builder) Paragraph(text string, color *creator.Color) + func (b *Builder) Table(headers []string, rows [][]flow.TableCell, widths []float64, ...) + func (b *Builder) Tree(root TreeNode) + type Font struct + Data []byte + Face *sfnt.Font + func LoadFont(explicit string) (Font, error) + func (f Font) PrepareText(ctx context.Context, text string, size, width float64) (string, error) + type Fonts struct + func LoadFonts(path string) (*Fonts, error) + func ParseFonts(regular, bold []byte) (*Fonts, error) + type Options struct + Theme string + type TableOptions struct + ColumnAlign []string + SplitRows bool + type TreeNode struct + Children []TreeNode + Detail string + Text string