pdfgen

package
v2.4.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL