Versions in this module Expand all Collapse all v0 v0.0.5 Aug 8, 2023 v0.0.4 Jun 18, 2023 v0.0.3 Jun 27, 2022 v0.0.2 Jun 26, 2022 v0.0.1 Oct 18, 2020 Changes in this version + var ErrInvalidPassword = fmt.Errorf("encrypted PDF: invalid password") + func Interpret(strm Value, do func(stk *Stack, op string)) + 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) (*Reader, error) + func (r *Reader) GetPlainText() (reader io.Reader, 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