Versions in this module Expand all Collapse all v0 v0.3.0 May 27, 2026 v0.2.0 May 27, 2026 Changes in this version + type Intersection struct + H []layout.Edge + V []layout.Edge + X float64 + Y float64 type Page + ExtractTables func(settings TableSettings) ([]*Table, error) + FindTables func(settings TableSettings) ([]TableFinder, error) + type Table struct + BBox BBox + CellsBBox [][]BBox + Page int + Rows [][]string + func (t Table) Cells() []BBox + type TableBox struct + BBox BBox + CellsGrid [][]BBox + Cols int + Rows int + func (t TableBox) Cells() []BBox + type TableFinder struct + Cells []BBox + Edges []layout.Edge + Intersections []Intersection + Tables []TableBox + type TableSettings struct + EdgeMinLength float64 + EdgeMinLengthPrefilter float64 + ExplicitHorizontalLines []float64 + ExplicitVerticalLines []float64 + HorizontalStrategy TableStrategy + IntersectionTolerance float64 + JoinTolerance float64 + KeepBlankChars bool + MinWordsHorizontal int + MinWordsVertical int + SnapTolerance float64 + TextTolerance float64 + VerticalStrategy TableStrategy + func DefaultTableSettings() TableSettings + type TableStrategy string + const StrategyExplicit + const StrategyLines + const StrategyLinesStrict + const StrategyText v0.1.0 May 26, 2026 Changes in this version + type BBox struct + X0 float64 + X1 float64 + Y0 float64 + Y1 float64 + func BBoxOfChar(c Char) BBox + func BBoxOfChars(cs []Char) BBox + func MergeBBoxes(bboxes []BBox) BBox + func NewBBox(x0, y0, x1, y1 float64) BBox + func (b BBox) Area() float64 + func (b BBox) Contains(other BBox) bool + func (b BBox) ContainsPoint(x, y float64) bool + func (b BBox) Height() float64 + func (b BBox) Intersect(other BBox) (BBox, bool) + func (b BBox) IsZero() bool + func (b BBox) Snap(step float64) BBox + func (b BBox) Union(other BBox) BBox + func (b BBox) Width() float64 type Page + ExtractText func(opts TextOpts) (string, error) + ExtractTextSimple func(xTolerance, yTolerance float64) (string, error) + Words func(opts WordOpts) ([]Word, error) + type TextOpts struct + Expand bool + ExtraAttrs []string + HorizontalLTR bool + Layout bool + LayoutHeightChars int + LayoutWidthChars int + UseTextFlow bool + VerticalTTB bool + XDensity float64 + XTolerance float64 + YDensity float64 + YTolerance float64 + func DefaultTextOpts() TextOpts + type Word struct + Chars []Char + Direction string + FontName string + FontSize float64 + Text string + Upright bool + X0 float64 + X1 float64 + Y0 float64 + Y1 float64 + func (w Word) Height() float64 + func (w Word) Width() float64 + type WordOpts struct + Expand bool + ExtraAttrs []string + HorizontalLTR bool + KeepBlankChars bool + KeepChars bool + SplitAtPunctuation bool + UseTextFlow bool + VerticalTTB bool + XTolerance float64 + YTolerance float64 + func DefaultWordOpts() WordOpts v0.0.1 May 26, 2026 Changes in this version + var ErrEncrypted = errors.New("pdftable: encrypted PDF (decryption not yet supported)") + var ErrInvalidPDF = errors.New("pdftable: invalid PDF") + var ErrPageOutOfRange = errors.New("pdftable: page out of range") + var ErrUnsupported = errors.New("pdftable: unsupported feature") + type Char struct + Advance float64 + FontName string + FontSize float64 + Text string + Upright bool + X0 float64 + X1 float64 + Y0 float64 + Y1 float64 + func (c Char) Height() float64 + func (c Char) Width() float64 + type Curve struct + Fill bool + Points [][2]float64 + Stroke bool + Width float64 + type Document interface + Close func() error + NumPages func() int + Page func(n int) (Page, error) + Pages func() iter.Seq2[int, Page] + func Open(r io.Reader) (Document, error) + func OpenBytes(b []byte) (Document, error) + func OpenFile(path string) (Document, error) + type Line struct + Stroke bool + Width float64 + X0 float64 + X1 float64 + Y0 float64 + Y1 float64 + type Objects struct + Chars []Char + Curves []Curve + Lines []Line + Rects []Rect + type Page interface + Chars func() ([]Char, error) + Curves func() ([]Curve, error) + Height func() float64 + Lines func() ([]Line, error) + Number func() int + Objects func() (Objects, error) + Rects func() ([]Rect, error) + Width func() float64 + type Rect struct + Fill bool + Stroke bool + Width float64 + X0 float64 + X1 float64 + Y0 float64 + Y1 float64