Versions in this module Expand all Collapse all v0 v0.21.0 Oct 31, 2026 v0.20.0 Oct 26, 2026 Changes in this version + const DefaultScale + var ErrEmptyRect = errors.New("pdfkit/widget: target rectangle is empty at the given scale") + var ErrNoFont = errors.New("pdfkit/widget: AddVector requires Options.Font for selectable text") + func Add(p *pdfkit.Page, root toolkit.Widget, rect pdfkit.Rect, opts *Options) error + func AddVector(p *pdfkit.Page, root toolkit.Widget, rect pdfkit.Rect, opts *Options) error + type Options struct + Font *pdfkit.Font + Scale float64 + Theme *toolkit.Theme