jZebra - 原始命令入门
我的任务是将带有条形码的网页转换为一键式标签打印。我已经启动并运行了 jZebra,但我不知道从哪里开始了解如何为打印机编写命令。
我已经用谷歌搜索了我能想到的与此相关的所有内容。
基本上,我试图理解这段代码:
applet.append("^XA^CF,0,0,0^PR12^MD30^PW800^PON^CI13\n");
// Draws a line. applet.append("^FO0,147^GB800,4,4^FS\n");
applet.append("^FO0,401^GB800,4,4^FS\n");
applet.append("^FO0,736^GB800,4,4^FS\n");
applet.append("^FO35,92^AdN,0,0^FWN^FH^FD^FS\n");
applet.append("^FO615,156^AdN,0,0^FWN^FH^FD(123) 456-7890^FS\n");
是否有人有关于这些字符/命令(如“^FO0,401^GB800,4,4^FS”)含义或用途的链接或信息?
I've been given the task of converting a web page with a barcode to a one click label print. I've got jZebra up and running, but I have no idea where to get started as far as understanding how to write commands for a printer.
I've Google'd just about everything I can think of regarding this.
Basically, I am trying to understand this code:
applet.append("^XA^CF,0,0,0^PR12^MD30^PW800^PON^CI13\n");
// Draws a line. applet.append("^FO0,147^GB800,4,4^FS\n");
applet.append("^FO0,401^GB800,4,4^FS\n");
applet.append("^FO0,736^GB800,4,4^FS\n");
applet.append("^FO35,92^AdN,0,0^FWN^FH^FD^FS\n");
applet.append("^FO615,156^AdN,0,0^FWN^FH^FD(123) 456-7890^FS\n");
Does anyone have links to or information regarding what these characters / commands like "^FO0,401^GB800,4,4^FS" mean or do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于斑马来说,这个简单的指南将为您提供帮助。
Zebra 命令
关于JZebra 上的
明确这一点:
EPL 是每行一个命令。命令以命令标识符(通常是字母)开头,后跟特定于该命令的以逗号分隔的参数列表。您可以在 EPL2 编程文档中查找每个命令。以下是上例中命令的英语版本。
命令已提交。
通常应该是任何 EPL 文档中的第一个命令;
谁知道上一个作业使打印机处于什么状态。
= 609 点宽)。
标签之间的点间隙。 (打印机可能会自动
有道理,但这并没有什么坏处。)
x = 26 点(1/8 英寸),y = 26 点(1/8 英寸),带窄条
宽度为 2 点,高度为 152 点(3/4 英寸)。 (这
标签坐标系的原点是左上角
)
x = 253 点(3/4 英寸),y = 26 点(1/8 英寸)
打印机字体“3”,正常水平和垂直缩放,
并且没有花哨的黑底白字效果。
所有起始线都是相似的。
10. [P] 打印一张标签的一份副本。
For zebra you this simple guide will help you.
On this Zebra commands
on JZebra
Having clear this:
EPL is one command per line. A command starts out with a command identifier, typically a letter, followed by a comma-separated list of parameters specific to that command. You can look up each of these commands in the EPL2 programming documentation. Here’s an English-language version of the commands in the above example.
command is submitted.
generally should be the first command in any EPL document;
who knows what state the previous job left the printer in.
= 609 dots wide).
dot gap between the labels. (The printer will probably auto-
sense, but this doesn't hurt.)
x = 26 dots (1/8 in), y = 26 dots (1/8 in) with a narrow bar
width of 2 dots and make it 152 dots (3/4 in) high. (The
origin of the label coordinate system is the top left corner
of the label.)
x = 253 dots (3/4 in), y = 26 dots (1/8 in) in
printer font "3", normal horizontal and vertical scaling,
and no fancy white-on-black effect.
All tha A starting lines are similar.
10. [P] Print one copy of one label.
在 google 工作 9,000 小时后:
重点是我的。可能想用谷歌搜索开发人员手册。
来源:http://code.google.com/p/jzebra/wiki/OldSummaryDoNotUse
After 9,000 hours in google:
Emphasis is mine. Probably want to google for a developer's manual.
Source: http://code.google.com/p/jzebra/wiki/OldSummaryDoNotUse