Versions in this module Expand all Collapse all v1 v1.3.0 Oct 29, 2026 v1.2.1 Oct 27, 2026 v1.2.0 Oct 27, 2026 v1.1.1 Oct 23, 2026 v1.1.0 Oct 23, 2026 v1.0.1 Oct 22, 2026 v1.0.0 Oct 21, 2026 Changes in this version + const Unmapped + func IsMarker(s string) bool + func OrderedLabel(txt string) (string, int) type Block + Cell *Cell + Image *Image + Lines []Line + Note string + Replacement string + func (b *Block) SetMCIDs() + func (b *Block) StripDeclaredMarker() bool + func (b *Block) StripOrderedLabel() bool + type Cell struct + Col int + Header bool + Row int + Table int + type Image struct + Artifact bool + Box geom.Rect + Height int + MCID int + Mask bool + Read *ImageRead + Width int + type ImageRead struct + Alt string + Blocks []Block + By string + Kind string + type Line struct + Box geom.Rect + Offset int + Page int + Size float64 + Space float64 + Span int type Page + Failed bool + Gutters []Rule + Images []Image + Recovered []Recovery + Rules []Rule + type Recovery struct + Box geom.Rect + Conf float64 + Engine string + Glyphs int + Text string type Role + const RoleFootnote + const RoleImage + type Rule struct + From float64 + Pos float64 + To float64 + Vertical bool + Width float64 + func (r Rule) Length() float64 type Span + Link string + Note string + Page int type Style + Strike bool v0 v0.2.0 Aug 8, 2026 Changes in this version + func ListMarker(txt string) rune type Block + Marker string + func (b *Block) SetMarker(marker string) + func (b *Block) StripMarker() bool + func (b Block) Enumerated() bool v0.1.0 Aug 5, 2026 Changes in this version + type Block struct + Alt string + Box geom.Rect + Lang string + Level int + MCIDs []int + Role Role + Spans []Span + func (b Block) IsEmpty() bool + func (b Block) Text() string + type Document struct + Meta Metadata + Pages []Page + func (d *Document) Text() string + type Metadata struct + Author string + Created string + Creator string + Encrypted bool + Keywords string + Lang string + Modified string + Path string + Producer string + Subject string + Tagged bool + Title string + Version string + type Outline struct + Meta Metadata + Preamble []Block + Sections []*Section + Unplaced []Page + func (o *Outline) Count() int + func (o *Outline) Walk(fn func(*Section) bool) + type Page struct + Blocks []Block + Box geom.Rect + Number int + Rasterized bool + Rotate int + func (p Page) Coverage() float64 + func (p Page) Text() string + func (p Page) TextBounds() geom.Rect + type Role string + const RoleArtifact + const RoleCaption + const RoleCode + const RoleFigure + const RoleHeading + const RoleListItem + const RoleParagraph + const RoleQuote + const RoleTableCell + type Section struct + Blocks []Block + FirstPage int + Kids []*Section + LastPage int + Level int + Number string + Parent *Section + Title string + func (s *Section) Path() []string + func (s *Section) Text() string + func (s *Section) Walk(fn func(*Section) bool) bool + type Span struct + Box geom.Rect + MCID int + Style Style + Text string + type Style struct + Bold bool + Font string + Hidden bool + Italic bool + Mono bool + Size float64 + func (s Style) SameRun(o Style, t geom.Tolerance) bool