Documentation ¶
Index ¶
- type FontFromFile
- type Reader
- func (r *Reader) NewPage()
- func (r *Reader) ParseContentStream(in io.Reader) error
- func (r *Reader) ParsePage(page pdf.Object, ctm matrix.Matrix) error
- func (r *Reader) ReadExtGState(ref pdf.Object, defaultName pdf.Name) (*graphics.ExtGState, error)
- func (r *Reader) ReadFont(ref pdf.Object, name pdf.Name) (F FontFromFile, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FontFromFile ¶
type FontFromFile interface { font.Embedded ForeachGlyph(s pdf.String, yield func(gid glyph.ID, text []rune, width float64, is_space bool)) FontData() interface{} Key() pdf.Reference }
FontFromFile represents a font which has been extracted from a PDF file.
type Reader ¶
type Reader struct { R pdf.Getter Resources *pdf.Resources graphics.State // User callbacks DrawGlyph func(g font.Glyph) error Text func(text string) error UnknownOp func(op string, args []pdf.Object) error EveryOp func(op string, args []pdf.Object) error // contains filtered or unexported fields }
A Reader reads a PDF content stream.
func (*Reader) ParseContentStream ¶
ParseContentStream parses a PDF content stream.
func (*Reader) ReadExtGState ¶
ReadExtGState reads an graphics state parameter dictionary from a PDF file.
Click to show internal directories.
Click to hide internal directories.