Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("closed")
ErrClosed is returned if the printer has been closed.
View Source
var ErrProcessTimeout = errors.New("process timeout")
ErrProcessTimeout is returned if a job timed out while processing.
View Source
var ErrQueueTimeout = errors.New("queue timeout")
ErrQueueTimeout is returned if a job timed out while queueing.
Functions ¶
This section is empty.
Types ¶
type LogError ¶
type LogError struct {
Lines []string
}
LogError may be returned if the processing failed due to a page error.
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
Printer prints web pages as PDFs.
func CreatePrinter ¶
CreatePrinter will create a new printer.
func (*Printer) Close ¶
Close will close the printer. It will wait for currently processing jobs to finish and cancels queued but not started jobs.
Click to show internal directories.
Click to hide internal directories.