Documentation ¶
Index ¶
- Variables
- func AddPrintRoutes(ctrl controller.CRUDSController, name string, ...)
- func Box(p *gofpdf.Fpdf, x, y, w, h float64, styleStr string, checked bool)
- func GetPrintHandler(printFunc func(*gin.Context) *gofpdf.Fpdf, fileName string) gin.HandlerFunc
- func GetReadWriteHandler(printFunc func(*gin.Context) *gofpdf.Fpdf, ...) gin.HandlerFunc
- func GetWriteHandler(printFunc func(*gin.Context) *gofpdf.Fpdf, ...) gin.HandlerFunc
- func LoadPngFromUrl(p *gofpdf.Fpdf, registerName, url string, wg *sync.WaitGroup)
- func WritePdf(c *gin.Context, p *gofpdf.Fpdf, folder, file string)
- type Document
- func (d Document) AddAcceptPageBreak(key string, value func() bool)
- func (d Document) AddFooter(key string, value func(*gofpdf.Fpdf))
- func (d Document) AddHeader(key string, value func(*gofpdf.Fpdf))
- func (d *Document) Init(p *gofpdf.Fpdf)
- func (d *Document) Register(reg Registrable)
- func (d Document) RemoveAcceptPageBreak(key string)
- func (d Document) RemoveFooter(key string)
- func (d Document) RemoveHeader(key string)
- func (d *Document) Unregister(reg Registrable)
- type Registrable
Constants ¶
This section is empty.
Variables ¶
View Source
var Bold = &table.Style{Format: "B"}
View Source
var Bordered = &table.Style{Border: "1"}
View Source
var Centered = &table.Style{Align: "C"}
View Source
var Reset = &table.Style{Format: "-"}
Functions ¶
func AddPrintRoutes ¶
func AddPrintRoutes(ctrl controller.CRUDSController, name string, printFunc func(*gin.Context) *gofpdf.Fpdf, pathFunc, fileFunc func(*gin.Context) string)
func GetPrintHandler ¶
func GetReadWriteHandler ¶
func GetWriteHandler ¶
func LoadPngFromUrl ¶
Types ¶
type Document ¶
type Document struct { HeaderFns *orderedmap.OrderedMap AcceptPageBreakFns *orderedmap.OrderedMap }
func NewDocument ¶
func (Document) AddAcceptPageBreak ¶
func (*Document) Register ¶
func (d *Document) Register(reg Registrable)
func (Document) RemoveAcceptPageBreak ¶
func (Document) RemoveFooter ¶
func (Document) RemoveHeader ¶
func (*Document) Unregister ¶
func (d *Document) Unregister(reg Registrable)
Click to show internal directories.
Click to hide internal directories.