Versions in this module Expand all Collapse all v0 v0.0.1 Nov 21, 2025 Changes in this version + type Context interface + Done func() <-chan struct{} + type ExecutionContext struct + GraphicsState *GraphicsState + Resources *semantic.Resources + TextState *TextState + type GraphicsState struct + CTM coords.Matrix + LineWidth float64 + func (gs *GraphicsState) Restore() error + func (gs *GraphicsState) Save() + type LineCap int + const LineCapButt + const LineCapRound + const LineCapSquare + type LineJoin int + const LineJoinBevel + const LineJoinMiter + const LineJoinRound + type OpBBox struct + OpIndex int + Rect semantic.Rectangle + type OperatorHandler interface + Handle func(ctx *ExecutionContext, operands []semantic.Operand) error + type Path struct + Subpaths []Subpath + type PathPoint struct + Control1X float64 + Control1Y float64 + Control2X float64 + Control2Y float64 + Type PathPointType + X float64 + Y float64 + type PathPointType int + const PathClose + const PathCurveTo + const PathLineTo + const PathMoveTo + type Processor interface + Process func(ctx Context, stream []byte, state *GraphicsState) error + RegisterHandler func(op string, h OperatorHandler) + func NewProcessor() Processor + type Subpath struct + Closed bool + Points []PathPoint + type TextRenderMode int + const TextClip + const TextFill + const TextFillClip + const TextFillStroke + const TextFillStrokeClip + const TextInvisible + const TextStroke + const TextStrokeClip + type TextState struct + Font *semantic.Font + FontSize float64 + TextLineMatrix coords.Matrix + TextMatrix coords.Matrix + type Tracer struct + func NewTracer() *Tracer + func (t *Tracer) Trace(ops []semantic.Operation, resources *semantic.Resources) ([]OpBBox, error)