render

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: MIT Imports: 2 Imported by: 0

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
}

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) 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