Documentation ¶
Overview ¶
Package PDF contains functionality to draw data onto a PDF and render said PDF to a file or string buffer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoFpdf ¶
type GoFpdf struct {
// contains filtered or unexported fields
}
func NewGoFpdf ¶
NewGoFpdf generates a new layout based on a Layout interface and uses the jung-kurt/gofpdf library to process all the information.
func (*GoFpdf) Document ¶
Document returns the actual PDF Document instance which is responsible for rendering all the blocks on the page.
type Pdf ¶
type Pdf interface { Bytes(buffer *bytes.Buffer) []byte LoadFonts(name string, styles map[string]string) Layout() layouts.Layout Document() documents.Document }
Pdf houses all the wrapper functionality about our actual PDF instance. It has a Document which it uses to wrypte all the data to and render the pages. The Layout represents the page layout.
Click to show internal directories.
Click to hide internal directories.