Versions in this module Expand all Collapse all v1 v1.0.0 Nov 7, 2021 Changes in this version + const AlignCenter + const AlignLeft + const AlignRight + const ValignBottom + const ValignMiddle + const ValignTop + var ColorBlack = ColorTableLine + var ColorGray = Color + var ColorTableLine = Color + var ColorWhite = Color + type AddPagePipe interface + After func(p PDF) + Before func(p PDF) + type Color struct + A uint8 + B uint8 + G uint8 + R uint8 + type NormalTable struct + func GetNormalTable() *NormalTable + func (nti *NormalTable) AddHeader(thc TableHeaderColumn) + func (nti *NormalTable) AddRow(r []*TableColumn) + func (nti *NormalTable) Draw(p PDF, style TableStyle, app ...AddPagePipe) + func (nti *NormalTable) DrawWithPosition(p PDF, style TableStyle, px, py float64) + type PDF interface + AddPage func() + AddPagePipe func(pp ...AddPagePipe) + Br func(h float64) + GetBottomHeight func() float64 + GetBottomMargin func() float64 + GetHeight func() float64 + GetLeftMargin func() float64 + GetRightMargin func() float64 + GetX func() float64 + GetY func() float64 + ImageReader func(imageByte io.Reader, x, y, w, h, alpha float64) error + LineWithPosition func(width float64, x1, y1, x2, y2 float64) + NewDashLine func(width float64) + NewLine func(width float64) + RectFillDrawColor func(text string, style TextBlockStyle, w, h float64, align, valign int) + SetX func(x float64) + SetY func(y float64) + Text func(text string, style TextStyle, align int) + Write func(w io.Writer) error + WriteToFile func(filepath string) error + func GetA4HPDF(conf *PdfConf, leftMargin, rightMargin, topMargin, bottomMargin float64) PDF + func GetA4PDF(conf *PdfConf, leftMargin, rightMargin, topMargin, bottomMargin float64) PDF + type PdfConf struct + Font PdfFont + type PdfFont map[string]string + type TableColumn struct + Align []int + Height float64 + Text []string + Width float64 + func GetTableColumn(w, h float64, align []int, text ...string) *TableColumn + type TableHeaderColumn struct + Main TableColumn + Sub []TableColumn + func (thc *TableHeaderColumn) AddSub(text string, width, height float64) + type TableStyle interface + Data func() TextBlockStyle + Header func() TextBlockStyle + type TextBlockStyle struct + BackGround Color + H float64 + TextAlign string + W float64 + func (tbs *TextBlockStyle) GetAlign() int + type TextStyle struct + Color Color + Font string + FontSize int + Style string