Versions in this module Expand all Collapse all v1 v1.13.2 Nov 2, 2026 v1.13.1 Nov 2, 2026 v1.13.0 Nov 2, 2026 v1.12.11 Nov 2, 2026 v1.12.10 Oct 31, 2026 v1.12.9 Oct 31, 2026 v1.12.8 Oct 31, 2026 v1.12.7 Oct 31, 2026 v1.12.6 Oct 30, 2026 v1.12.5 Oct 30, 2026 v1.12.4 Oct 28, 2026 v1.12.3 Oct 27, 2026 v1.12.2 Oct 27, 2026 v1.12.1 Oct 27, 2026 v1.12.0 Oct 26, 2026 Changes in this version type Content + Images []Rect type Page + func (p Page) ImageCoverage() float64 v1.11.16 Oct 24, 2026 Changes in this version + var DebugOn = false + var ErrInvalidPassword = fmt.Errorf("encrypted PDF: invalid password") + func Interpret(strm Value, do func(stk *Stack, op string)) + func IsSameSentence(last, current Text) bool + type Column struct + Content TextVertical + Position int64 + type Columns []*Column + type Content struct + Rect []Rect + Text []Text + type Font struct + V Value + func (f Font) BaseFont() string + func (f Font) Encoder() TextEncoding + func (f Font) FirstChar() int + func (f Font) LastChar() int + func (f Font) Width(code int) float64 + func (f Font) Widths() []float64 + type Outline struct + Child []Outline + Title string + type Page struct + V Value + func (p Page) Content() Content + func (p Page) Font(name string) Font + func (p Page) Fonts() []string + func (p Page) GetPlainText(fonts map[string]*Font) (result string, err error) + func (p Page) GetTextByColumn() (Columns, error) + func (p Page) GetTextByRow() (Rows, error) + func (p Page) Resources() Value + type Point struct + X float64 + Y float64 + type Reader struct + func NewReader(f io.ReaderAt, size int64) (*Reader, error) + func NewReaderEncrypted(f io.ReaderAt, size int64, pw func() string) (*Reader, error) + func Open(file string) (*os.File, *Reader, error) + func (r *Reader) GetPlainText() (reader io.Reader, err error) + func (r *Reader) GetStyledTexts() (sentences []Text, err error) + func (r *Reader) NumPage() int + func (r *Reader) Outline() Outline + func (r *Reader) Page(num int) Page + func (r *Reader) Trailer() Value + type Rect struct + Max Point + Min Point + type Row struct + Content TextHorizontal + Position int64 + type Rows []*Row + type Stack struct + func (stk *Stack) Len() int + func (stk *Stack) Pop() Value + func (stk *Stack) Push(v Value) + type Text struct + Font string + FontSize float64 + S string + W float64 + X float64 + Y float64 + type TextEncoding interface + Decode func(raw string) (text string) + type TextHorizontal []Text + func (x TextHorizontal) Len() int + func (x TextHorizontal) Less(i, j int) bool + func (x TextHorizontal) Swap(i, j int) + type TextVertical []Text + func (x TextVertical) Len() int + func (x TextVertical) Less(i, j int) bool + func (x TextVertical) Swap(i, j int) + type Value struct + func (v Value) Bool() bool + func (v Value) Float64() float64 + func (v Value) Index(i int) Value + func (v Value) Int64() int64 + func (v Value) IsNull() bool + func (v Value) Key(key string) Value + func (v Value) Keys() []string + func (v Value) Kind() ValueKind + func (v Value) Len() int + func (v Value) Name() string + func (v Value) RawString() string + func (v Value) Reader() io.ReadCloser + func (v Value) String() string + func (v Value) Text() string + func (v Value) TextFromUTF16() string + type ValueKind int + const Array + const Bool + const Dict + const Integer + const Name + const Null + const Real + const Stream + const String