Versions in this module Expand all Collapse all v0 v0.0.13 Apr 9, 2024 v0.0.12 Feb 9, 2024 v0.0.11 Feb 9, 2024 Changes in this version type Reader + func (r *Reader) Verdicts() []string + func (r *Reader) Version() (v string) v0.0.10 Feb 8, 2024 v0.0.9 Feb 8, 2024 v0.0.8 Feb 7, 2024 v0.0.7 Feb 7, 2024 v0.0.6 Feb 6, 2024 v0.0.5 Feb 6, 2024 v0.0.4 Feb 6, 2024 v0.0.3 Feb 6, 2024 v0.0.2 Feb 6, 2024 v0.0.1 Feb 6, 2024 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) Close() (err 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