模拟ZPL打印机 [英] Emulate ZPL printer

查看:594
本文介绍了模拟ZPL打印机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要在我的Mac上模拟ZPL打印机,我通过互联网搜索了几天.最后,我有一个解决方案可在此处发布,以便其他用户可以找到帮助.我想在模拟Zebra打印机

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 post my solution here Emulate Zebra printer

但是对于那些认为该问题重复了另一个问题的人表示感谢",我认为这完全是错误的.因此,对我而言,唯一的选择是创建另一个问题并对其进行回答.

But "thanks" for those who decided that this question duplicates another one, which in my opinion totally false. So the only option for me is to create another question and answer to it.

推荐答案

因此,要在您的Mac(也可能是Windows)上模拟ZPL打印机:

So, to emulate ZPL printer on your mac (possibly windows too):

  1. 安装此chrome应用程序 Zpl打印机
  2. 转到打印机设置,添加新的设置.
  1. Install this chrome app Zpl Printer
  2. Go to printer settings, add new one.

端口可能会有所不同.仔细检查.

Port can vary. Double-check it.

  1. 确保一切都已打开.

要对其进行测试,请在您的终端中尝试:

To test it, try in your terminal:

lp -o"raw" -q1-d zpl<<< "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"

lp -o "raw" -q1 -d zpl <<< "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"

如果一切均已正确调整,则在ZPL打印机中,您将看到:

If everything tuned properly, in ZPL printer you will see:

这篇关于模拟ZPL打印机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆