zpl

Zebra Printing with CUPS no print ZPL or EPL

孤人 提交于 2019-12-31 10:56:29
问题 I have a Zebra GK420d connect to OS X via CUPS. However, when I send files to it that are written in ZPL or EPL they are only printed in plain text. Am I required to change to mode on the printer? 回答1: Contrary to what others said, you don't need to specially add a raw queue. Instead, you can submit raw files into any queue using -o raw switch: lpr -P CupsPrinterName -o raw path/to/label.zpl Printer name can be found over that link in CUPS: http://localhost:631/printers/ This also works on

Zebra Printing with CUPS no print ZPL or EPL

佐手、 提交于 2019-12-31 10:55:29
问题 I have a Zebra GK420d connect to OS X via CUPS. However, when I send files to it that are written in ZPL or EPL they are only printed in plain text. Am I required to change to mode on the printer? 回答1: Contrary to what others said, you don't need to specially add a raw queue. Instead, you can submit raw files into any queue using -o raw switch: lpr -P CupsPrinterName -o raw path/to/label.zpl Printer name can be found over that link in CUPS: http://localhost:631/printers/ This also works on

Emulate Zebra printer [duplicate]

早过忘川 提交于 2019-12-29 03:28:08
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Print preview ZPL II commands using .NET WinForm before sending it to Zebra printer I am working on a Java app that prints tickets to a Zebra printer. The problem is that I am working remotely and don't have access to the Zebra printer (or any other printer actually). I would like to know if there is a way to emulate the Zebra printer so that I can visualize the result of the print jobs generated by my app (to

Convert image data to format needed for gfa

帅比萌擦擦* 提交于 2019-12-25 09:26:43
问题 If I have an Image file (png, bmp, or jpg), and I need to get the data for the ZPL GFA tag, how do I do that? I would like some example in vb.net or C# 回答1: please add this class to your project: public class zplImageConverter : Component, IBindableComponent { private int blackLimit=125; private int total; private int widthBytes; private bool compressHex= false; public int BlacknessLimitPercentage { get { return (blackLimit * 100 / 255); } set { blackLimit = (value * 255 / 100); } } public

ZPL passing parameters to the labels prints with misplaced data

ε祈祈猫儿з 提交于 2019-12-24 02:23:33
问题 We are using Zebra Designer Pro to create the templates. We have placed various labels on the templates to which we pass values dynamically through the code at the runtime. We are doing this by creating ZPL in the code and appending various parameter values which we want to print in the ZPL. Method to create the label is below: private string GetPrinterInstruction(string templateName, IList<string> variables, int numberOfCopies) { StringBuilder printerInstruction = new StringBuilder(); /

Zebra LP2844 stopped responding to ZPL Commands or Files

╄→尐↘猪︶ㄣ 提交于 2019-12-23 10:27:03
问题 I sent a couple zpl files to the printer to test it and it worked fine. After that I was receiving base64 encoded zpl data from UPS and creating a file and sending it to the printer via a Java applet, and now any zpl commands or files I send to it are doing nothing. I put it in diagnostic dump mode, sent some commands, then hit feed and it just printed a list of the commands it was sent.. so they're going through at least, but it won't print them. It prints other data fine, for instance when

How to Calculate Zebra Font 0 text width?

我的梦境 提交于 2019-12-22 09:37:27
问题 Is there a way to calculate the total width of Zebra Font 0 given text? Consider the following ZPL command, **^XA^FO100,150^A030,30^FDSample Text^FS^XZ** Here both character height and width is 30 dots. I want to calculate the actual width of this text in mm. Please note that printer DPI is 300.............. 回答1: Font 0 is a variable-width font (not monospaced like some of the others), so the width of the text will depend on the text itself. One option would be to switch to a built-in

Convert image to GRF format

限于喜欢 提交于 2019-12-20 02:57:24
问题 I have a Zebra Gk420t printer that allows me to make stickers and I need to print an image on them. I read that the images must be in GRF format (pure hex). Someone knows how can I convert the images to GRF format in Linux? I read about Ztools software on Windows, but nothing interesting on Linux... 回答1: Zebra provides a Java API that can convert graphics to GRF. You can use the command line interface to convert images to GRF like so : java -jar ZSDK_API.jar graphic myImage.jpeg -s

How to generate a dynamic GRF image to ZPL ZEBRA print

这一生的挚爱 提交于 2019-12-18 13:17:25
问题 I have a problem. I´m generating a dynamic BMP image and trying to send this to a ZEBRA printer by ZPL commands. I need to convert my BMP to a GRF image. I think that my Hexadecimal extracted by the BMP image isn´t correct. The printed image is blurred and incorrect. This is my code: string bitmapFilePath = @oldArquivo; // file is attached to this support article byte[] bitmapFileData = System.IO.File.ReadAllBytes(bitmapFilePath); int fileSize = bitmapFileData.Length; Bitmap ImgTemp = new

Zebra Printer - Cut on last page

笑着哭i 提交于 2019-12-13 18:34:32
问题 I've a Zebra ZT610 and I want to print a label, in pdf format, containing multiple pages and then have it cut on the last page. I've tried using the delayed cut mode and sending the ~JK command but I'm using a self written java application to do the invocation of printing. I've also tried to add the string "${^XB}$" into the PDF document before each page break, except the last, and used the pass-through setting in the driver to inhibit the cut command but that seems to not work either as the