Documentation ¶ Index ¶ func ToPDF(html string, outputPath string, baseDir string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ToPDF ¶ func ToPDF(html string, outputPath string, baseDir string) error ToPDF renders html to a PDF file. baseDir is the directory of the source markdown file; the temp HTML file is created there so relative image paths resolve. Types ¶ This section is empty. Source Files ¶ View all Source files renderer.go Click to show internal directories. Click to hide internal directories.