printer

package
v1.0.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2025 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

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 PrintMacOSX(printerName, pdfFilePath string, printSpeed int)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL