render

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldInfo

type FieldInfo struct {
	Key        string
	PageNum    int
	X, Y       float64
	W, H       float64
	Align      int
	Font       string
	Size       int
	IsWrapText bool
}

FieldInfo field position

type FieldInfos

type FieldInfos []FieldInfo

FieldInfos FieldInfo slice

type Render

type Render struct {
	pdft.PDFt
	// contains filtered or unexported fields
}

Render pdf render

func NewRender

func NewRender(pdfTmpl string, finfos FieldInfos) (*Render, error)

NewRender create new render

func (*Render) ImgBase64

func (r *Render) ImgBase64(key string, base64 string) error

ImgBase64 image base 64

func (*Render) SetTextBreaker added in v0.6.0

func (r *Render) SetTextBreaker(tb textbreak.TextBreaker)

func (*Render) ShowDesignView

func (r *Render) ShowDesignView()

ShowDesignView for debug

func (*Render) Text

func (r *Render) Text(key string, text string) error

Text write text to pdf

Jump to

Keyboard shortcuts

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