state

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Font

type Font interface {
	Name() string
	Decode(string) (string, float64)
}

type Graphics

type Graphics struct {
	// contains filtered or unexported fields
}

Graphics holds some state defined in: PDF_ISO_32000-2: Table 51: Device-independent graphics state parameters and PDF_ISO_32000-2: 8.4.2 Graphics state stack

Methods on Graphics implement some operators from: PDF_ISO_32000-2: Table 56: Graphics state operators

func (*Graphics) CM

func (g *Graphics) CM(a, b, c, d, e, f float64)

func (*Graphics) Pop

func (g *Graphics) Pop()

func (*Graphics) Push

func (g *Graphics) Push()

func (*Graphics) Tj

func (g *Graphics) Tj(r Renderer, raw string)

type Renderer

type Renderer interface {
	Render(x, y, w, h float64, font, s string)
}

type Text

type Text struct {
	// contains filtered or unexported fields
}

Text holds most state defined in: PDF_ISO_32000-2: Table 102: Text state parameters

Methods on Text implement the operators from: PDF_ISO_32000-2: Table 103: Text state operators and PDF_ISO_32000-2: Table 106: Text-positioning operators

func (*Text) BT

func (t *Text) BT()

func (*Text) ET

func (t *Text) ET()

func (*Text) TD

func (t *Text) TD(tx, ty float64)

func (*Text) TJDisplace

func (t *Text) TJDisplace(v float64)

TJDisplace handles that part of a TJ operator when one of the array elements is a glyph displacement.

func (*Text) TL

func (t *Text) TL(v float64)

func (*Text) Tc

func (t *Text) Tc(v float64)

func (*Text) Td

func (t *Text) Td(tx, ty float64)

func (*Text) Tf

func (t *Text) Tf(font Font, size float64)

func (*Text) Tj

func (t *Text) Tj(ctm *matrix, r Renderer, raw string)

func (*Text) Tm

func (t *Text) Tm(a, b, c, d, e, f float64)

func (*Text) Tstar

func (t *Text) Tstar()

func (*Text) Tw

func (t *Text) Tw(v float64)

func (*Text) Tz

func (t *Text) Tz(v float64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL