Documentation
¶
Overview ¶
Package pdf lays out markdown as a PDF, so a run document can be read or shared as a printed page. It is pure Go: markdown is parsed with goldmark and drawn with fpdf in the Go fonts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// Dir is where relative image paths are found. Empty means the
// working directory.
Dir string
// Title is the PDF's title metadata.
Title string
// AllowOutside reads images from anywhere. Otherwise a local image
// must be inside Dir's root (see package docroot): its repository,
// or Dir itself.
AllowOutside bool
}
Options control how Render lays out the page.