Frontend

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  []ot.Feature
	MissingGlyphFunc font.MissingGlyphFunc // Called when a character is not found in the font during shaping. If nil, missing glyphs are silently rendered as .notdef.
}

Colors Lang Nodebuilding Fonts and font families Image inclusion SVG graphics Simple PDF drawing library Tables