Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code interface { GenQr(code string) (*entity.Image, error) GenDataMatrix(code string) (*entity.Image, error) GenBar(code string, cell *entity.Cell, prop *props.Barcode) (*entity.Image, error) }
Code is the abstraction which deals of how to add QrCodes or Barcode in a PDF.
type Document ¶
type Font ¶
type Font interface { SetFamily(family string) SetStyle(style fontstyle.Type) SetSize(size float64) SetFont(family string, style fontstyle.Type, size float64) GetFamily() string GetStyle() fontstyle.Type GetSize() float64 GetFont() (string, fontstyle.Type, float64) GetHeight(family string, style fontstyle.Type, size float64) float64 GetScaleFactor() (scaleFactor float64) SetColor(color *props.Color) GetColor() *props.Color }
Font is the abstraction which deals of how to set fontstyle configurations.
type Image ¶
type Image interface {
Add(img *entity.Image, cell *entity.Cell, margins *entity.Margins, prop *props.Rect, extension extension.Type, flow bool) error
}
Image is the abstraction which deals of how to add images in a PDF.
type Math ¶
type Math interface { GetInnerCenterCell(inner *entity.Dimensions, outer *entity.Dimensions, percent float64) *entity.Cell GetInnerNonCenterCell(inner *entity.Dimensions, outer *entity.Dimensions, prop *props.Rect) *entity.Cell }
Math is the abstraction which deals with useful calc.
type Provider ¶
type Provider interface { // Grid CreateRow(height float64) CreateCol(width, height float64, config *entity.Config, prop *props.Cell) // Features AddLine(cell *entity.Cell, prop *props.Line) AddText(text string, cell *entity.Cell, prop *props.Text) GetTextHeight(prop *props.Font) float64 AddMatrixCode(code string, cell *entity.Cell, prop *props.Rect) AddQrCode(code string, cell *entity.Cell, rect *props.Rect) AddBarCode(code string, cell *entity.Cell, prop *props.Barcode) AddImageFromFile(value string, cell *entity.Cell, prop *props.Rect) AddImageFromBytes(bytes []byte, cell *entity.Cell, prop *props.Rect, extension extension.Type) AddBackgroundImageFromBytes(bytes []byte, cell *entity.Cell, prop *props.Rect, extension extension.Type) // General GenerateBytes() ([]byte, error) SetCache(cache cache.Cache) SetProtection(protection *entity.Protection) SetCompression(compression bool) SetMetadata(metadata *entity.Metadata) }
Click to show internal directories.
Click to hide internal directories.