Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestPdf ¶
type RequestPdf struct {
Body string
// contains filtered or unexported fields
}
RequestPdf contains the html data
func NewRequestPdf ¶
func NewRequestPdf(body string) *RequestPdf
NewRequestPdf creates a new RequestPdf from body
func (*RequestPdf) GeneratePDF ¶
func (r *RequestPdf) GeneratePDF(pdfPath string) error
GeneratePDF generates the pdf from the request
func (*RequestPdf) LocalFileAccess ¶
func (r *RequestPdf) LocalFileAccess(b bool)
LocalFileAccess enables or disables local file access
func (*RequestPdf) ParseTemplate ¶
func (r *RequestPdf) ParseTemplate(templateFileName string, data interface{}, funcMap map[string]any) error
ParseTemplate to template data
Click to show internal directories.
Click to hide internal directories.