Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DarkBlue = ColorRGB{65, 182, 255}
View Source
var DarkGreen = ColorRGB{99, 182, 99}
View Source
var LightBlue = ColorRGB{214, 239, 255}
View Source
var LightGreen = ColorRGB{219, 240, 219}
Functions ¶
Types ¶
type Job ¶
type Job interface { // AddLine adds one line of output to the print job. linefeed indicates // whether, in addition to a carriage return action at the end of the // line, the printer should advance by one line. (linefeed=false will // cause the next line to overtype the current line.) Returns the current // number of pages in the job so far. AddLine(text string, linefeed bool) int // NewPage indicates that the print job encountered a form feed character. // Returns the current number of pages in the job so far. NewPage() int // EndJob instructs the virtual printer to end the job and write the // output (e.g. the PDF of all lines and pages for this job) to the // io.Writer. Will return the total number of pages. EndJob(io.Writer) (int, error) }
Job is the interface that each virtual printers must implement to receive print jobs.
Click to show internal directories.
Click to hide internal directories.