Documentation
¶
Overview ¶
Package chromium prints HTML to PDF with a headless Chromium. It is the one printer.Printer adapter today. The browser is found once, lazily, in this order: the path this adapter was built with, the CHROMIUM environment variable, then whatever the PATH calls chromium under any of the names the various builds use. A hard-coded /usr/bin/chromium was true on exactly one machine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Printer ¶
type Printer struct {
// Path is the browser binary to use. Empty means resolve one.
Path string
// contains filtered or unexported fields
}
Printer prints with the browser at Path, or with one it resolves.
Click to show internal directories.
Click to hide internal directories.