Versions in this module Expand all Collapse all v1 v1.5.1 Dec 11, 2024 v1.5.0 Aug 8, 2024 Changes in this version + var Fonts embed.FS + func Contains(a []string, x string) bool + func ConvertFromByte(data []byte, result interface{}) error + func ConvertToByte(data interface{}) ([]byte, error) + func ToBoolean(value interface{}, defValue bool) bool + func ToFloat(value interface{}, defValue float64) float64 + func ToInteger(value interface{}, defValue int64) int64 + func ToRGBA(value interface{}, defValue color.RGBA) color.RGBA + func ToString(value interface{}, defValue string) string + type Barcode struct + CodeType string + Extend bool + Height float64 + Value string + VisibleValue bool + Width float64 + type Cell struct + Align string + BackgroundColor color.RGBA + Border string + BorderColor color.RGBA + FontSize float64 + FontStyle string + Multiline bool + Name string + TextColor color.RGBA + Value string + Width string + type Column struct + Align string + Fieldname string + Footer string + FooterAlign string + HeaderAlign string + Label string + Width string + type Datagrid struct + BackgroundColor color.RGBA + Border string + BorderColor color.RGBA + Columns []PageItem + Databind string + FontSize float64 + FooterBackground color.RGBA + HeaderBackground color.RGBA + Merge bool + Name string + TextColor color.RGBA + Width string + type Generator interface + AddFont func(familyStr, styleStr, fileStr string, rd io.Reader) + AddImage func(image *Image, x, y float64, options IM) + AddPage func() + Cell func(options IM) + GetFontSize func() (ptSize float64) + GetPageSize func() (width, height float64) + GetTextWidth func(s string) float64 + GetX func() float64 + GetY func() float64 + Init func(rpt *Report) + Line func(x1, y1, x2, y2 float64) + Ln func(h float64) + LoadImage func(img image.Image, x, y, h, w float64) error + MultiCell func(options IM) + PageNo func() int + Rect func(x, y, w, h float64, styleStr string) + Save2Pdf func() ([]byte, error) + Save2PdfFile func(filename string) error + SetDrawColor func(r, g, b int) + SetFillColor func(r, g, b int) + SetFont func(familyStr, styleStr string, size float64) + SetFontSize func(size float64) + SetProperties func(rpt *Report) + SetText func(x, y float64, value string) error + SetTextColor func(r, g, b int) + SetX func(x float64) + SetXY func(x, y float64) + SetY func(y float64) + Text func(txtStr string, pageBreak float64) + type HLine struct + BorderColor color.RGBA + Gap float64 + Width string + type HTML struct + Fieldname string + Value string + type IM = map[string]interface + type Image struct + Data []byte + Height float64 + MaxHeight float64 + MaxWidth float64 + Src string + Width float64 + type PageItem struct + Item interface{} + ItemType string + type Report struct + Author string + BackgroundColor color.RGBA + BorderColor color.RGBA + BottomMargin float64 + Creator string + FontFamily string + FontSize float64 + FontStyle string + ImagePath string + Keywords string + LeftMargin float64 + Pdf Generator + RightMargin float64 + Subject string + TextColor color.RGBA + Title string + TopMargin float64 + func New(options ...string) (rpt *Report) + func (rpt *Report) AppendElement(options ...interface{}) (*[]PageItem, error) + func (rpt *Report) CreateReport() bool + func (rpt *Report) LoadJSONDefinition(jsonString string) error + func (rpt *Report) Save2DataURLString(filename string) (string, error) + func (rpt *Report) Save2Pdf() ([]byte, error) + func (rpt *Report) Save2PdfFile(filename string) error + func (rpt *Report) Save2Xml() string + func (rpt *Report) SetData(key string, value interface{}) (bool, error) + func (rpt *Report) SetReportValue(fieldname string, value interface{}) error + type Row struct + Columns []PageItem + HGap float64 + Height float64 + Visible string + type SM = map[string]string + type Separator struct + Gap float64 + type VGap struct + Height float64 + PageBreak bool