我有一个Qz实例,它可以打印文本,但对于如何从字符串生成pdf417条形码,我有点不知所措。
如有任何指导,将不胜感激。
发布于 2018-08-23 18:51:08
FInally我生成了PDF417作为一个图像,然后使用QzTray提供的原始图像打印来打印它。
发布于 2019-01-17 05:47:30
如果您想避免使用光栅图形,有些语言(如ZPL )支持PDF417。下面是示例直接从斑马网站
汽车应用中常用的PDF417 ZPL示例 ^XA ^FO50,50^BY3,3^B7N,8,5,7,21,N^FH_^FD[)>_1E06_1DP12345678_1DQ160_1D1JUN123456789A2B4C6D8E _1D20LA6-987_1D21L54321 ZES_1D15KG1155_1DBSC151208_1D7Q10GT_1E_04^FS ^XZ

使用^B7使用PDF417的基本示例ZPL格式
^XA^Y2,3 ^FO50,50^B7N,5,5,83,N ^FDZebra技术公司致力于成为企业和政府专业需求标签和票务问题创新解决方案的专家供应商。我们将吸引和留住最优秀的人才,他们将了解我们客户的需求,并为他们提供系统、硬件、软件、消耗品和服务,提供最佳价值、高质量和可靠的性能,所有这些都能及时交付。

把这个改编成QZ托盘很简单..。
var config = qz.configs.create("ZDesigner");
var data = [
"^XA^BY2,3\n",
"^FO50,50^B7N,5,5,,83,N\n",
"^FDZebra Technologies strives to be the expert supplier of innovative solutions to specialty demand labeling and ticketing problems of business and government. We will attract and retain the best people who will understand our customer's needs and provide them with systems, hardware, software, consumables and service offering the best value, high quality, and reliable performance, all delivered in a timely manner.^FS\n",
"^XZ"
];
qz.print(config, data);https://stackoverflow.com/questions/51952430
复制相似问题