render

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CTColor

type CTColor struct {
	Value    *color.RGBA
	AxialShd canvas.Gradient
}

type Document

type Document struct {
	*parser.Document
	// contains filtered or unexported fields
}

func NewDocument

func NewDocument(background color.Color, doc *parser.Document) *Document

func (*Document) Annot

func (p *Document) Annot(ctx *canvas.Context, annot *models.Annot, pb models.StBox)

func (*Document) Draw

func (p *Document) Draw(ctx *canvas.Context, page *parser.Page) error

func (*Document) Image

func (p *Document) Image(ctx *canvas.Context, object models.ImageObject, dp *models.DrawParam, pb models.StBox)

func (*Document) Layer

func (p *Document) Layer(ctx *canvas.Context, layer *models.Layer, pb models.StBox)

func (*Document) Page

func (p *Document) Page(page *parser.Page) (*canvas.Canvas, error)

func (*Document) PageContent

func (p *Document) PageContent(ctx *canvas.Context, page *parser.Page, seal bool)

func (*Document) Path

func (p *Document) Path(ctx *canvas.Context, object models.PathObject, dp *models.DrawParam, pb models.StBox)

func (*Document) Seal

func (p *Document) Seal(ctx *canvas.Context, info *parser.SealInfo, pb models.StBox) error

func (*Document) Template

func (p *Document) Template(ctx *canvas.Context, template models.Template, pb models.StBox)

func (*Document) Text

func (p *Document) Text(ctx *canvas.Context, object models.TextObject, dp *models.DrawParam, pb models.StBox)

type Fonts

type Fonts struct {
	*parser.Document
	Fonts map[models.StRefID]*canvas.FontFamily
}

func NewFonts

func NewFonts(doc *parser.Document) *Fonts

func (*Fonts) LoadFont

func (p *Fonts) LoadFont(id models.StRefID) (*canvas.FontFamily, error)

Jump to

Keyboard shortcuts

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