Documentation ¶ Index ¶ func RegisterBookmanOldStyle(pdf *gofpdf.Fpdf) (err error) type Color type Margins type PdfConfig func NewPdfConfig(orientation, units, paperSize string, ...) (pdfConfig *PdfConfig) func (cfg *PdfConfig) RegisterExternalFonts(pdf *gofpdf.Fpdf) (err error) type TextConfig Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func RegisterBookmanOldStyle ¶ func RegisterBookmanOldStyle(pdf *gofpdf.Fpdf) (err error) Types ¶ type Color ¶ type Color struct { R, G, B int } type Margins ¶ type Margins struct { Left float64 Top float64 Right float64 } type PdfConfig ¶ type PdfConfig struct { Orientation string Units string PaperSize string Margins Margins RegisterFonts bool } func NewPdfConfig ¶ func NewPdfConfig( orientation, units, paperSize string, leftMargin, rightMargin, topMargin float64, registerFonts bool, ) (pdfConfig *PdfConfig) func (*PdfConfig) RegisterExternalFonts ¶ func (cfg *PdfConfig) RegisterExternalFonts(pdf *gofpdf.Fpdf) (err error) type TextConfig ¶ type TextConfig struct { FontFamily string Align string Style string Size float64 Color Color } Source Files ¶ View all Source files config.go register-font.go Click to show internal directories. Click to hide internal directories.