Versions in this module Expand all Collapse all v0 v0.1.6 Oct 27, 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 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 (b *Builder) Block(kind string, level int, text string, style flow.TextStyle) + func (b *Builder) Build() (*creator.Document, error) + 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, ...) + 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 TableOptions struct + ColumnAlign []string + SplitRows bool