Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionContext ¶
type ExecutionContext struct {
GraphicsState *GraphicsState
TextState *TextState
Resources *semantic.Resources
}
type GraphicsState ¶
type GraphicsState struct {
CTM coords.Matrix
LineWidth float64
// contains filtered or unexported fields
}
func (*GraphicsState) Restore ¶
func (gs *GraphicsState) Restore() error
func (*GraphicsState) Save ¶
func (gs *GraphicsState) Save()
type OperatorHandler ¶
type OperatorHandler interface {
Handle(ctx *ExecutionContext, operands []semantic.Operand) error
}
type Path ¶
type Path struct {
Subpaths []Subpath
}
Path describes a graphics path made of subpaths.
type PathPoint ¶
type PathPoint struct {
X, Y float64
Type PathPointType
Control1X, Control1Y float64
Control2X, Control2Y float64
}
PathPoint identifies a path segment and its coordinates.
type PathPointType ¶
type PathPointType int
PathPointType enumerates path segment types.
const ( PathMoveTo PathPointType = iota PathLineTo PathCurveTo PathClose )
type Processor ¶
type Processor interface {
Process(ctx Context, stream []byte, state *GraphicsState) error
RegisterHandler(op string, h OperatorHandler)
}
func NewProcessor ¶
func NewProcessor() Processor
type TextRenderMode ¶
type TextRenderMode int
TextRenderMode matches PDF text rendering modes set via Tr operator.
const ( TextFill TextRenderMode = iota TextStroke TextFillStroke TextInvisible TextFillClip TextStrokeClip TextFillStrokeClip TextClip )
Click to show internal directories.
Click to hide internal directories.