config

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 1 Imported by: 1

Documentation

Index

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL