Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PDFGenerator ¶
type PDFGenerator interface { // AddPage adds a new input page to the document. // A page is an input HTML page, it can span multiple pages in the output document. // It is a Page when read from file or URL or a PageReader when read from memory. AddPage(p wkhtmltopdf.PageProvider) // Create creates the PDF document and writes is to the output file. Create() error }
PDFGenerator is a thin wrapper for the wkhtmltopdf.PDFGenerator struct.
func NewPDFGenerator ¶
func NewPDFGenerator(chatFile afero.File) (PDFGenerator, error)
NewPDFGenerator sets up a new PDF generator to write to the given file.
Directories ¶
Path | Synopsis |
---|---|
Package mock_pdfgen is a generated GoMock package.
|
Package mock_pdfgen is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.