Versions in this module Expand all Collapse all v1 v1.2.0 Aug 8, 2023 v1.1.0 Aug 8, 2023 Changes in this version + type Context interface + ClearPath func() + Clip func() + ClipPreserve func() + ClosePath func() + CubicTo func(x1, y1, x2, y2, x3, y3 float64) + DrawImage func(image image.Image, x, y int) + DrawImageAnchored func(image image.Image, x, y int, ax, ay float64) + DrawRectangle func(x, y, w, h float64) + DrawString func(s string, x, y float64) + Fill func() + FillPreserve func() + Height func() int + LineTo func(x, y float64) + LineWidth func() float64 + Matrix func() transform.Matrix + MeasureString func(s string) (w, h float64) + MoveTo func(x, y float64) + NewSubPath func() + Pop func() + Push func() + QuadraticTo func(x1, y1, x2, y2 float64) + ResetClip func() + Rotate func(angle float64) + Scale func(x, y float64) + SetDash func(dashes ...float64) + SetDashOffset func(offset float64) + SetFillRGBA func(r, g, b, a float64) + SetFillRule func(fillRule FillRule) + SetFillStyle func(pattern Pattern) + SetLineCap func(lineCap LineCap) + SetLineJoin func(lineJoin LineJoin) + SetLineWidth func(lineWidth float64) + SetMatrix func(m transform.Matrix) + SetRGBA func(r, g, b, a float64) + SetStrokeRGBA func(r, g, b, a float64) + SetStrokeStyle func(pattern Pattern) + Stroke func() + StrokePreserve func() + TextState func() *TextState + Translate func(x, y float64) + Width func() int + type FillRule int + const FillRuleEvenOdd + const FillRuleWinding + type Gradient interface + AddColorStop func(offset float64, color color.Color) + type LineCap int + const LineCapButt + const LineCapRound + const LineCapSquare + type LineJoin int + const LineJoinBevel + const LineJoinRound + type Pattern interface + ColorAt func(x, y int) color.Color + type TextFont struct + Face font.Face + Font *model.PdfFont + Size float64 + func NewTextFont(font *model.PdfFont, size float64) (*TextFont, error) + func NewTextFontFromPath(filePath string, size float64) (*TextFont, error) + func (tf *TextFont) BytesToCharcodes(data []byte) []textencoding.CharCode + func (tf *TextFont) CharcodesToUnicode(charcodes []textencoding.CharCode) []rune + func (tf *TextFont) GetCharMetrics(code textencoding.CharCode) (float64, float64, bool) + func (tf *TextFont) GetRuneMetrics(r rune) (float64, float64, bool) + func (tf *TextFont) WithSize(size float64, originalFont *model.PdfFont) *TextFont + type TextState struct + Tc float64 + Tf *TextFont + Th float64 + Tl float64 + Tlm transform.Matrix + Tm transform.Matrix + Ts float64 + Tw float64 + func NewTextState() *TextState + func (ts *TextState) ProcDQ(data []byte, aw, ac float64, ctx Context) + func (ts *TextState) ProcQ(data []byte, ctx Context) + func (ts *TextState) ProcTD(tx, ty float64) + func (ts *TextState) ProcTStar() + func (ts *TextState) ProcTd(tx, ty float64) + func (ts *TextState) ProcTf(font *TextFont) + func (ts *TextState) ProcTj(data []byte, ctx Context) + func (ts *TextState) ProcTm(a, b, c, d, e, f float64) + func (ts *TextState) Reset() + func (ts *TextState) Translate(tx, ty float64)