Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cell ¶
Cell represents a cell inside the PDF.
func NewRootContext ¶
func (*Cell) GetDimensions ¶
func (c *Cell) GetDimensions() *config.Dimensions
type Document ¶
type Document interface {
GetBytes() []byte
GetType() documenttype.DocumentType
GetBase64() string
Save(file string) error
GetReport() *metrics.Report
To(documenttype.DocumentType) (Document, error)
}
func NewZPLFromPDF ¶
type Provider ¶
type Provider interface {
// Grid
CreateRow(height float64)
CreateCol(width, height float64, config *config.Config, prop *props.Cell)
// Features
AddLine(cell *Cell, prop *props.Line)
AddText(text string, cell *Cell, prop *props.Text)
AddSignature(text string, cell *Cell, prop *props.Text)
AddMatrixCode(code string, cell *Cell, prop *props.Rect)
AddQrCode(code string, cell *Cell, rect *props.Rect)
AddBarCode(code string, cell *Cell, prop *props.Barcode)
AddImage(value string, cell *Cell, prop *props.Rect, extension extension.Type)
// General
GetDimensions() (width float64, height float64)
GetMargins() (left float64, top float64, right float64, bottom float64)
GenerateFile(file string) error
GenerateBytes() ([]byte, error)
SetCache(cache cache.Cache)
SetProtection(protection *config.Protection)
SetCompression(compression bool)
SetMetadata(metadata *config.Metadata)
}
Click to show internal directories.
Click to hide internal directories.