使用 PCL 语法生成条形码的语法
我正在寻找 PCL 语法来生成和打印条形码。如果有人有任何相关信息,请帮助我。我尝试过谷歌搜索,但没有找到任何东西。
Iam searching for a PCL syntax to generate and print the BARCODE. If anyone having any information about the same, please help me. I have tried googling it, but didnt find anything.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先你需要一个条形码字体。一旦您完成此操作,只需将光标移动到您想要的位置(在示例中为 300 x 300,以您定义的任何测量单位),然后调用 barocde 并放下您的文本。一个简单的示例可能类似于 htis:
这假设您已将条形码嵌入作为打印作业的一部分,并将数字 1000 分配给字体调用。只需在网络上搜索“pcl 条形码字体”,您就会发现许多出售这些字体并提供如何调用的说明的网站。如果打印机嵌入了条形码字体,请尝试打印字体列表,它应该提供您需要调用的转义序列。
First you need a barcode font. Once you have this simply move the cursor to the spot you want (in the example 300 x 300 in whatever unit of measure you've defined), and then call the barocde and put your text down. A simple exmample might look like htis:
This assumes that you have embedded the barcode as part of the print job and assigned the numeric 1000 to the font call. Just search the web for "pcl barcode font" and you will find many sites that sell these fonts and provide instructions on how to call. If the printer has barcode fonts embedded, try printing a font list and it should provide the escape sequence you need to call.