Documentation
¶
Index ¶
- func ClearPrintQueLinux(printerName string)
- func ClearPrintQueMacOSX(printerName string)
- func Print(printerName, name string)
- func PrintLinux(printerName, pdfFilePath string)
- func PrintMacOSX(printerName, pdfFilePath string, printSpeed int)
- func PrintTwo(printerName, name, extraString string)
- func PrintWindows(printerName, pdfFilePath string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearPrintQueLinux ¶ added in v1.0.13
func ClearPrintQueLinux(printerName string)
func ClearPrintQueMacOSX ¶ added in v1.0.13
func ClearPrintQueMacOSX(printerName string)
func Print ¶ added in v1.0.13
func Print(printerName, name string)
Print creates a PDF ticket with a rotated text and a rotated logo. It uses findMaxFontSize to scale the text so that it is as large as possible without overflowing the available width. It uses the adjusted centering function (addRotatedCenteredTextPrint1) so that for a 90° rotation the text remains on the page.
func PrintLinux ¶ added in v1.0.13
func PrintLinux(printerName, pdfFilePath string)
func PrintMacOSX ¶ added in v1.0.13
func PrintTwo ¶ added in v1.0.31
func PrintTwo(printerName, name, extraString string)
PrintTwo creates a PDF ticket with two pieces of rotated text (name and extraString) and a rotated logo. The main text's font size is maximized, and the extra text's font size is clamped (ensuring it is smaller than the main text) based on a fixed ratio.
func PrintWindows ¶
func PrintWindows(printerName, pdfFilePath string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.