如何使用Zebra打印机在标签上打印徽标并向其发送ZPL指令 [英] How to print a logo on labels using a Zebra printer and sending ZPL instructions to it

查看:237
本文介绍了如何使用Zebra打印机在标签上打印徽标并向其发送ZPL指令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将ZPL指令发送到Zebra打印机(目前为GK420t). 我正在打印50mm x 20mm的标签. 我希望在标签的左上角印一个徽标(约5mm x 5mm的小图像).

I would like send ZPL instructions to a Zebra printer (GK420t for now). I'm printing 50mm x 20mm labels. I would like a logo (small ~ 5mm x 5mm image) to be printed on the upper left corner of the label.

我想知道我应该遵循的步骤.

I would like to know the steps I should follow to do this.

我一直在阅读和尝试ZPL手册中的一些内容,但是我不太了解它的工作原理,也找不到有效的示例.

I have been reading and trying a few things from the ZPL manual but I don't really understand how it works and couldn't find a working example.

看来我必须先将图像加载"到打印机中(在所谓的存储区"/DRAM中?),然后再打印.

It looks like I have to "load" the image into the printer first (in a so-called "storage area"/DRAM?) and then print it.

.GRF文件扩展名在手册中多次提及. 我找不到将.PNG或.BMP图像转换为.GRF文件的工具. 我读到.GRF文件是图形图像的ASCII HEX表示形式...但是它并没有帮助我完成这项工作.

The .GRF file extension is mentioned many times in the manual. I couldn't find the tool to convert a .PNG or .BMP image into a .GRF file. I read that a .GRF file is an ASCII HEX representation of a graphic image... but it didn't help me do the work.

我可以使用"Zebra设置实用程序"在标签上打印徽标,方法是下载字体和图形",选择任何可用的.MMF文件,添加.BMP图片,将其下载到打印机并打印.测试页. 但是直到现在,我还不能使用ZPL指令来做到这一点.

I could print the logo on the labels using the "Zebra Setup Utilities", by "Downloading Fonts and Graphics", choosing any available .MMF file, adding a .BMP picture, downloading it [to the printer] and printing a test page. But until now, I couldn't do it using ZPL instructions.

考虑到我需要在标签上打印约5mm x 5mm的小图像,我还想知道应该使用的最佳尺寸是什么. 我打印的图像是40px x 40px的图像. 另外,如果我必须从原始图像制作.GRF文件,则该文件的类型应该是什么(.BMP,.PNG,.JPG)?

I am also wondering what are the best dimensions I should use given the fact that I need a small image ~5mm x 5mm to be printed on the labels. The image I printed is a 40px x 40px image. Also, if I have to make a .GRF file from an original image what should be the type of this file (.BMP, .PNG, .JPG)?

您能告诉我如何继续吗?

Can you advise me how to proceed?

推荐答案

听起来您已有一些ZPL代码,而您要做的就是在其中添加图片.

It sounds like you have some existing ZPL code, and all you want to do is add an image to it.

如果是这种情况,最简单的解决方案可能是转到在线ZPL查看器,粘贴您的ZPL进入查看器,单击添加图像",然后将要添加的图像上传到ZPL.

If that's the case, the easiest solution is probably to go to the Labelary online ZPL viewer, paste your ZPL into the viewer, click "Add image", and upload the image that you want to add to the ZPL.

这应该通过添加所需的图像ZPL命令来修改ZPL,然后可以调整位置等.

This should modify your ZPL by adding the image ZPL commands that you need, and you can then tweak the position, etc.

这篇关于如何使用Zebra打印机在标签上打印徽标并向其发送ZPL指令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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