OpenPrinting / cups

OpenPrinting CUPS Sources
https://openprinting.github.io/cups
Apache License 2.0
1.08k stars 193 forks source link

How to set offset to printer's ribbon? #708

Closed AndroidDesigner closed 1 year ago

AndroidDesigner commented 1 year ago

Hello I'm using the Zebra ZPL label driver for a label printer on a Ubuntu OS. Everything work fine, except I want to set a horizontal offset in the left side of ribbon, so that it print with an offset on the label.

I tried with changing ppd file of my printer (in /etc/cups/ppd), but nothing happened.

Also, I tried lp -o left-page=value(to points) -d printerName fileName command, but when the left-page argument is small, no effect is seen and large value of left-page affects on the size of label and makes it very small (while the value passed to the left-page is true).
example:
suppose my label is 1.5*1 cm and now ribbon is printing from left-side exactly (I have to shift label to the left side of printer physically so that my sensors can act). So I want to shift ribbon printing 0.15inch to the right, so I used:
lp -o left-page=10 -d printerName fileName ---> no offset occurs.
lp -o left-page=50 -d printerName fileName ---> it shifts a little, but reduces size of print in both vertically and horizontally.

What is the problem/solution? Thanks

michaelrsweet commented 1 year ago

You can't shift the output with a print option, you need to change what you are sending to print...