Versions in this module Expand all Collapse all v0 v0.1.8 Oct 31, 2026 v0.1.7 Oct 30, 2026 Changes in this version + const MaxDepth + func AnnotationVisible(annot *models.Annot) bool + func ItemID(item models.PageItem) models.StID + func MapBox(from, to models.StBox) (geom.Matrix, bool) + func Present(item models.PageItem) bool + func VisibleLayers(layers []*models.Layer, hidden map[models.StID]bool) []*models.Layer + func WalkAnnotations[S Resources](frame Frame[S], annotations *models.PageAnnot, watermark bool, ...) + func WalkItems[S Resources](frame Frame[S], items []models.PageItem, visit Visitor[S]) + func WalkLayers[S Resources](frame Frame[S], layers []*models.Layer, visit Visitor[S]) + func WalkPage[S PageResources](frame Frame[S], page *models.PageContent, annotations *models.PageAnnot, ...) error + type Composite struct + Box models.StBox + DrawParam *models.DrawParam + Items []models.PageItem + Source models.StBox + type Frame struct + Box models.StBox + Clip *geom.Path + Depth int + DrawParam *models.DrawParam + InComposite bool + Matrix geom.Matrix + Scope S + Source Source + func (f Frame[S]) MapLayout(layout textlayout.Layout) textlayout.Layout + func (f Frame[S]) OFDClip(path *geom.Path) *geom.Path + func (f Frame[S]) Place(mapping geom.Matrix, source Source, clip *geom.Path) Frame[S] + type Options struct + IncludeAnnotations bool + IncludeSeals bool + IncludeWatermarks bool + type PageResources interface + LoadTemplate func(id models.StID) (*models.PageContent, error) + TemplateForeground func(template models.Template) bool + type Resources interface + CompositeClip func(object models.CompositeObject, pageHeight float64) *geom.Path + GetDrawParam func(id models.StID) *models.DrawParam + ResolveComposite func(object models.CompositeObject, inherited *models.DrawParam, depth int) (Composite, bool) + TextClip func(unit models.CTGraphicUnit, pageHeight float64) *geom.Path + type Source = textlayout.Source + const SourceAnnotation + const SourcePage + const SourceSeal + const SourceTemplate + const SourceWatermark + type Visibility struct + HiddenLayers map[models.StID]bool + HiddenTemplates map[models.StID]bool + type Visitor func(Frame[S], models.PageItem)