Emulate ZPL printer

前端 未结 4 1716
天涯浪人
天涯浪人 2020-12-05 01:11

To emulate ZPL printer on my mac I searched through internet for a few days. Finally I\'ve got a solution to post here, so other users could find it helpful. I wanted to pos

4条回答
  •  青春惊慌失措
    2020-12-05 01:38

    Wonderful. This test label command worked fine for me on RHEL7.3.

    lpr -o "raw" -P MYPRINTER <<< "CT~~CD,~CC^~CT~^XA~TA000~JSN^LT0^MNW^MTT^PON^PMN^LH0,0^JMA^PR6,6~SD15^JUS^LRN^CI0^XZ^XA^MMT^PW508^LL0203^LS0^BY4,3,138^FT48,155^BCN,,Y,N^FD>;12^FS^PQ1,0,1,Y^XZ"
    
    tail -f /var/log/cups/access_log
    
    localhost - - [26/Sep/2017:10:32:09 -0400] "POST /printers/MYPRINTER HTTP/1.1" 200 397 Send-Document successful-ok
    
    [MYPRINTER Test label][1]
    

提交回复
热议问题