utils/label_job library

Classes

LabelCommands
Printer maintenance commands (TSPL).
LabelJob
Builds a complete print job for one label (or roll slice) from image.
MonoBitmap
1-bit image, rows packed MSB first, bit 1 = black (ink).
RowRun
A run of length rows starting at row start.

Enums

LabelCompression
How the bitmap is sent.
LabelLanguage
Command language the printer speaks. Saved by index -- only append. detong: the DeTong raster protocol of DP27 / LD0801 printers (1F .. 88 commands, run-length rows) -- what the maker's own driver sends; prints dense areas (barcodes) without the stalls their ESC/POS raster mode shows.
LabelMedia
How the printer finds the start of each label. Wrong media is the usual cause of "blank label and the roll keeps feeding": the printer hunts for a gap that isn't there.
PrinterDpi
Printer head resolution. Use the one printed on the printer's label; sending a 203 dpi image to a 300 dpi head prints it ~2/3 size.