Skip to content

Overview#

The starting point for using the frontend is to create a new document:

func New(filename string) (*Document, error)

where the filename is the name of the PDF file which gets created. The function creates a document structure:

type Document struct {
    FontFamilies    map[string]*FontFamily
    Doc             *document.PDFDocument
    DefaultFeatures []harfbuzz.Feature
}