cups-ipp icon indicating copy to clipboard operation
cups-ipp copied to clipboard

How can I set a margin left print attribute ?

Open DonTermi opened this issue 7 years ago • 6 comments

Hello,

thanks for your package. It works greatfully for my label print application. But for one printer I need a margin left to printing the label. It is lightly displaced. How can I set a margin left for ipp?

I tried many things ... But response was always "property unknown". I´m using cups as print server. It´s a Zebra TLP 2844 printer.

Hope you can help me. Thank you.

DonTermi avatar Dec 07 '17 14:12 DonTermi

I print labels with this printer too. (zebra printer). I send ZPL params code in order to set margin

usb248 avatar Dec 15 '17 14:12 usb248

Can you tell me a examle please? thank you

DonTermi avatar Dec 16 '17 09:12 DonTermi

Like this. My zebra printer interprets the ZPL code :

^XA~TA000~JSN^LT0^MNW^MTT^PON^PMN^LH0,0^JMA^PR6,6~SD15^JUS^LRN^CI0^XZ
^XA
^MMT
^PW320
^LL0160
^LS0
^FT7,30^A0N,20,20^FH\^FD^FS
^FT7,60^A0N,30,28^FH\^FDBLine 1^FS
^FT7,90^A0N,20,18^FH\^FDLine 2^FS
^FT7,150^A0N,50,50^FH\^FD^FS
^FT275,150^A0N,50,50^FH\^FDA^FS
^PQ1,0,0,N
^XZ

(FTx,y) Example : FT7,30 = 7 from the left, 30 from the top

usb248 avatar Dec 18 '17 14:12 usb248

@usb248 @smalot Can I ask how you print ZPL code with this library? I get the ZPL codes on my label, instead of a barcode. What attributes are needed to print ZPL?

rvarkelen avatar Feb 05 '18 13:02 rvarkelen

On a linux OS, i installed a CUPS service (IP_LOCAL:631). I can configure cups and add network printers. If you print ZPL codes without your printer interpreting it, it's because you didn't configure the right driver. (For me, the correct driver is : generic text-only printer) capture

usb248 avatar Feb 06 '18 09:02 usb248

@usb248 Thanks, works like a charm 👍

rvarkelen avatar Feb 06 '18 18:02 rvarkelen