Documentation ¶
Index ¶
- func FromBytes(bytes []byte, ext extension.Type) (*entity.Image, error)
- func New(dep *Dependencies) core.Provider
- func NewBuilder() *builder
- func NewFont(pdf gofpdfwrapper.Fpdf, size float64, family string, style fontstyle.Type) *font
- func NewImage(pdf gofpdfwrapper.Fpdf, math core.Math) *image
- func NewLine(pdf gofpdfwrapper.Fpdf) *line
- func NewText(pdf gofpdfwrapper.Fpdf, math core.Math, font core.Font) *text
- type Builder
- type Dependencies
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewImage ¶
func NewImage(pdf gofpdfwrapper.Fpdf, math core.Math) *image
NewImage create an Image.
func NewLine ¶
func NewLine(pdf gofpdfwrapper.Fpdf) *line
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.