Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AndroidDesigner opened this issue May 23, 2023 · 1 comment
Open

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

AndroidDesigner opened this issue May 23, 2023 · 1 comment

Comments

@AndroidDesigner
Copy link

AndroidDesigner commented May 23, 2023

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.

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

  2. 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

@AndroidDesigner AndroidDesigner changed the title How to set offset for ribbon How to set offset to printer's ribbon? May 23, 2023
@lhojun
Copy link

lhojun commented Jun 22, 2023

did you solve this problem?

i'm using TSC MH241
i found AdjustHoriaontal(i think typo of AdjustHorizontal), AdjustVertical and VerticalOffset in my PPD file(MH241.PPD)
so i think you can handle the offset using these options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants