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) 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) AddSignature(text string, cell *entity.Cell, prop *props.Text) 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) }
type Signature ¶
Signature is the abstraction which deals of how to add a signature space inside PDF.
Click to show internal directories.
Click to hide internal directories.