Versions in this module Expand all Collapse all v0 v0.1.2 Dec 31, 2020 Changes in this version type Reader + func (r *Reader) Resolve(id uint32) Value type Value + func (v Value) ObjPtrs() []uint32 + func (v Value) P() uint32 + func (v Value) RawReader() io.Reader + func (v Value) StringWithMap(m map[uint32]uint32) string v0.1.1 Apr 11, 2018 v0.1.0 Apr 11, 2018 Changes in this version + var ErrInvalidPassword = fmt.Errorf("encrypted PDF: invalid password") + func Interpret(strm Value, do func(stk *Stack, op string)) + 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) 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) 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 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