Versions in this module Expand all Collapse all v0 v0.29.0 Dec 14, 2020 Changes in this version + func NewCode(pdf gofpdf.Pdf, math Math) *code + func NewFont(pdf gofpdf.Pdf, size float64, family consts.Family, style consts.Style) *font + func NewImage(pdf gofpdf.Pdf, math Math) *image + func NewMath(pdf gofpdf.Pdf) *math + func NewSignature(pdf gofpdf.Pdf, math Math, text Text) *signature + func NewTableList(text Text, font Font) *tableList + func NewText(pdf gofpdf.Pdf, math Math, font Font) *text + type Cell struct + Height float64 + Width float64 + X float64 + Y float64 + type Code interface + AddBar func(code string, cell Cell, prop props.Barcode) (err error) + AddQr func(code string, cell Cell, prop props.Rect) + type Font interface + GetFamily func() consts.Family + GetFont func() (consts.Family, consts.Style, float64) + GetScaleFactor func() (scaleFactor float64) + GetSize func() float64 + GetStyle func() consts.Style + SetFamily func(family consts.Family) + SetFont func(family consts.Family, style consts.Style, size float64) + SetSize func(size float64) + SetStyle func(style consts.Style) + type Image interface + AddFromBase64 func(stringBase64 string, cell Cell, prop props.Rect, extension consts.Extension) (err error) + AddFromFile func(path string, cell Cell, prop props.Rect) (err error) + type MarotoGridPart interface + Col func(width uint, closure func()) + ColSpace func(width uint) + GetCurrentOffset func() float64 + GetPageMargins func() (left float64, top float64, right float64, bottom float64) + GetPageSize func() (width float64, height float64) + Line func(spaceHeight float64) + Row func(height float64, closure func()) + SetBackgroundColor func(color color.Color) + Text func(text string, prop ...props.Text) + type Math interface + GetCenterCorrection func(outerSize, innerSize float64) float64 + GetRectCenterColProperties func(imageWidth float64, imageHeight float64, colWidth float64, colHeight float64, ...) (x float64, y float64, w float64, h float64) + GetRectNonCenterColProperties func(imageWidth float64, imageHeight float64, colWidth float64, colHeight float64, ...) (x float64, y float64, w float64, h float64) + type Signature interface + AddSpaceFor func(label string, cell Cell, textProp props.Text) + type TableList interface + BindGrid func(part MarotoGridPart) + Create func(header []string, contents [][]string, prop ...props.TableList) + type Text interface + Add func(text string, cell Cell, textProp props.Text) + GetLinesQuantity func(text string, fontFamily props.Text, colWidth float64) int