gofpdf

package
v2.0.0-...-e22b400 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBytes

func FromBytes(bytes []byte, ext extension.Type) (*entity.Image, error)

func New

func New(dep *Dependencies) core.Provider

New is the constructor of provider for gofpdf

func NewBuilder

func NewBuilder() *builder

NewBuilder create a new Builder

func NewFont

func NewFont(pdf gofpdfwrapper.Fpdf, size float64, family string, style fontstyle.Type) *font

NewFont create a Font.

func NewImage

func NewImage(pdf gofpdfwrapper.Fpdf, math core.Math) *image

NewImage create an Image.

func NewLine

func NewLine(pdf gofpdfwrapper.Fpdf) *line

func NewText

func NewText(pdf gofpdfwrapper.Fpdf, math core.Math, font core.Font) *text

NewText create a Text.

Types

type Builder

type Builder interface {
	Build(cfg *entity.Config, cache cache.Cache) *Dependencies
}

Builder is the dependencies builder for gofpdf

type Dependencies

type Dependencies struct {
	Fpdf       gofpdfwrapper.Fpdf
	Font       core.Font
	Text       core.Text
	Code       core.Code
	Image      core.Image
	Line       core.Line
	Cache      cache.Cache
	CellWriter cellwriter.CellWriter
	Cfg        *entity.Config
}

Dependencies is the dependencies provider for gofpdf

Directories

Path Synopsis
nolint: dupl
nolint: dupl

Jump to

Keyboard shortcuts

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