Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPDFGenerator ¶
NewPDFGenerator is to create PDF
func NewPDFGeneratorFromJSON ¶
func NewPDFGeneratorFromJSON()
NewPDFGeneratorFromJSON is only experimental
func NewPDFGeneratorFromJSON2 ¶
func NewPDFGeneratorFromJSON2()
NewPDFGeneratorFromJSON2 is only experimental
Types ¶
type ConfigPDF ¶
ConfigPDF is configuration for PDF
func (*ConfigPDF) SetOptions ¶
func (pc *ConfigPDF) SetOptions(pdfg *wk.PDFGenerator)
SetOptions is to set PDF configuration
type CreateFromFile ¶
CreateFromFile is File object corresponding with Creator interface
func (*CreateFromFile) CreatePDFBuffer ¶
func (cr *CreateFromFile) CreatePDFBuffer(pdfg *wk.PDFGenerator) *wk.PDFGenerator
CreatePDFBuffer is to create pdf buffer from filepath generator
func (*CreateFromFile) CreatePage ¶
func (cr *CreateFromFile) CreatePage(pdfg *wk.PDFGenerator) bool
CreatePage is to create page from Filepath
func (*CreateFromFile) GetConf ¶
func (cr *CreateFromFile) GetConf() *ConfigPDF
GetConf is to return ConfigPDF
func (*CreateFromFile) NewGenerator ¶
func (cr *CreateFromFile) NewGenerator() *wk.PDFGenerator
NewGenerator is to generate initial PDFGenerator object
type CreateFromURL ¶
CreateFromURL is URL object corresponding with Creator interface
func (*CreateFromURL) CreatePDFBuffer ¶
func (cr *CreateFromURL) CreatePDFBuffer(pdfg *wk.PDFGenerator) *wk.PDFGenerator
CreatePDFBuffer is to create pdf buffer from url generator
func (*CreateFromURL) CreatePage ¶
func (cr *CreateFromURL) CreatePage(pdfg *wk.PDFGenerator) bool
CreatePage is to create page from URL
func (*CreateFromURL) GetConf ¶
func (cr *CreateFromURL) GetConf() *ConfigPDF
GetConf is to return ConfigPDF
func (*CreateFromURL) NewGenerator ¶
func (cr *CreateFromURL) NewGenerator() *wk.PDFGenerator
NewGenerator is to generate initial PDFGenerator object
type Creator ¶
type Creator interface { GetConf() *ConfigPDF NewGenerator() *wk.PDFGenerator CreatePage(*wk.PDFGenerator) bool CreatePDFBuffer(*wk.PDFGenerator) *wk.PDFGenerator }
Creator is to create