lprint icon indicating copy to clipboard operation
lprint copied to clipboard

Add label definitions with a width of 105 mm

Open mairas opened this issue 9 months ago • 1 comments

lprint seems to pick the maximum allowed width as the maximum supported label size width. This PR adds some 105mm label sizes to the TSPL driver to allow labels wider than 4in.

I'm not sure this is an ideal solution, though. What if some label printer supports, say, A4 width labels? Wouldn't it be better to allow arbitrary label sizes in pappl, or define an explicit and configurable max width parameter?

mairas avatar May 07 '24 13:05 mairas

The roll_min_NNNxNNNuu and roll_max_NNNxNNNuu sizes in the list define the min and max label sizes that are allowed... We can update these to be metric and include the 105mm max width.

But that said, I'm not sure whether all TSPL printers will support 105mm max or just the one you are working with. There are a LOT of inexpensive label printers using a common 203dpi thermal print head/engine that supports a TSPL subset, in addition to the "original" TSC label printers.

michaelrsweet avatar May 07 '24 14:05 michaelrsweet