Versions in this module Expand all Collapse all v1 v1.0.1 Jun 8, 2021 v1.0.0 Feb 24, 2021 Changes in this version + var PDFColorNames = map[string]color.RGBA + type PDF struct + func NewPDF(paperSize string) PDF + func (*PDF) ErrorInfo(err error) (ret struct{ ... }) + func (ob *PDF) AddPage() *PDF + func (ob *PDF) Bytes() []byte + func (ob *PDF) Clean() *PDF + func (ob *PDF) Color() color.RGBA + func (ob *PDF) Compression() bool + func (ob *PDF) CurrentPage() int + func (ob *PDF) DocAuthor() string + func (ob *PDF) DocCreator() string + func (ob *PDF) DocKeywords() string + func (ob *PDF) DocSubject() string + func (ob *PDF) DocTitle() string + func (ob *PDF) DrawBox(x, y, width, height float64, optFill ...bool) *PDF + func (ob *PDF) DrawCircle(x, y, radius float64, optFill ...bool) *PDF + func (ob *PDF) DrawEllipse(x, y, xRadius, yRadius float64, optFill ...bool) *PDF + func (ob *PDF) DrawImage(x, y, height float64, fileNameOrBytes interface{}, backColor ...string) *PDF + func (ob *PDF) DrawLine(x1, y1, x2, y2 float64) *PDF + func (ob *PDF) DrawText(s string) *PDF + func (ob *PDF) DrawTextAlignedToBox(x, y, width, height float64, align, text string) *PDF + func (ob *PDF) DrawTextAt(x, y float64, text string) *PDF + func (ob *PDF) DrawTextInBox(x, y, width, height float64, align, text string) *PDF + func (ob *PDF) DrawUnitGrid() *PDF + func (ob *PDF) Errors() []error + func (ob *PDF) FillBox(x, y, width, height float64) *PDF + func (ob *PDF) FillCircle(x, y, radius float64) *PDF + func (ob *PDF) FillEllipse(x, y, xRadius, yRadius float64) *PDF + func (ob *PDF) FontName() string + func (ob *PDF) FontSize() float64 + func (ob *PDF) HorizontalScaling() uint16 + func (ob *PDF) LineWidth() float64 + func (ob *PDF) NextLine() *PDF + func (ob *PDF) PageCount() int + func (ob *PDF) PageHeight() float64 + func (ob *PDF) PageWidth() float64 + func (ob *PDF) PullError() error + func (ob *PDF) Reset() *PDF + func (ob *PDF) SaveFile(filename string) error + func (ob *PDF) SetColor(nameOrHTMLColor string) *PDF + func (ob *PDF) SetColorRGB(r, g, b byte) *PDF + func (ob *PDF) SetColumnWidths(widths ...float64) *PDF + func (ob *PDF) SetCompression(val bool) *PDF + func (ob *PDF) SetCurrentPage(pageNo int) *PDF + func (ob *PDF) SetDocAuthor(s string) *PDF + func (ob *PDF) SetDocCreator(s string) *PDF + func (ob *PDF) SetDocKeywords(s string) *PDF + func (ob *PDF) SetDocSubject(s string) *PDF + func (ob *PDF) SetDocTitle(s string) *PDF + func (ob *PDF) SetFont(name string, points float64) *PDF + func (ob *PDF) SetFontName(name string) *PDF + func (ob *PDF) SetFontSize(points float64) *PDF + func (ob *PDF) SetHorizontalScaling(percent uint16) *PDF + func (ob *PDF) SetLineWidth(points float64) *PDF + func (ob *PDF) SetUnits(units string) *PDF + func (ob *PDF) SetX(x float64) *PDF + func (ob *PDF) SetXY(x, y float64) *PDF + func (ob *PDF) SetY(y float64) *PDF + func (ob *PDF) TextWidth(s string) float64 + func (ob *PDF) ToColor(nameOrHTMLColor string) (color.RGBA, error) + func (ob *PDF) ToPoints(numberAndUnit string) (float64, error) + func (ob *PDF) ToUnits(points float64) float64 + func (ob *PDF) Units() string + func (ob *PDF) WrapTextLines(width float64, text string) (ret []string) + func (ob *PDF) X() float64 + func (ob *PDF) Y() float64