zebra-printers

How to Calculate Zebra Font 0 text width?

三世轮回 提交于 2019-12-05 22:50:45
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.............. 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 monospaced font like font C, where each character is always 10 dots wide and the intercharacter gap is 2 dots wide

Printing arabic text using Zebra printer [ZPL]

痴心易碎 提交于 2019-12-05 19:08:47
As the title says Is there any option to print the arabic content ZPL Printer. Thing tried is adding the font and initiate the print ^XA ^FX ^FR ^CF0,40^CI28^FO130,45^FH^FD محاكمة Font file^FS ^XZ My printer has TT0003M_.TTF font installed but it shows "????" when i tried to print arabic using ^XA^FO50,50^AE:TT0003M_.TTFN,50,50^FDمحاكمة^FS ^XZ Any idea how to install a font and print the arabic text using ZPL language? ^XA^CI28^CW1,E:TT0003M_.TTF^LL130^FS ^PA0,1,1,1 ^FO50,50^A1N30,30^FDمحاكمة‏ ^FS ^XZ Updated this answer to match the other question Also found this on the Zebra KB - https://km

UTF-8 character not printing with Zebra printer

耗尽温柔 提交于 2019-12-05 16:16:04
I am trying to print Persian character on my Zebra Z410 label printer. But for some reason it is printing ?????. The ZPL code I am sending to the printer is ^XA ^FO50,50 ^PA1,1,1,1 ^A@N,50,50,E:TT0003M_.TTF^FDعاسشاتعفثه^FS ^XZ I am using the Zebra Setup Utilities-Open communication with printer. Please Help!! Your example above did not specify ^CI28 which would let you use UTF-8 instead of field hex. ^XA ^FO50,50 ^PA1,1,1,1 ^A@N,50,50,E:TT0003M_.TTF^CI28^FDعاسشاتعفثه^FS ^XZ Zebra Setup Utilities is not handling the UTF-8 correctly. I just tested with PuTTY to a network printer and the UTF was

New line in Zebra ZPL

。_饼干妹妹 提交于 2019-12-05 14:51:22
问题 How do I put new line characters for my "Text"? Say for example: Hello World will become Hello World is there anyway that I can put a new line character for my code like this? ^FT78,76^A0N,28,28^FH\^FDHello\nWorld^FS If the "text" in my label is too long, how would I put another line to it? 回答1: Use \& for new line ^FT78,76^A0N,28,28^FH\^FDHello\&World^FS 回答2: I suggest you combine the answers from Thorsten and Dharmesh for maximum effect: ^FB400,2,0,C^FO0,50 ^FDHello\&World^FS Doing so will

how to write a zpl code inside a php script and how to send it to a zebra printer for printing

瘦欲@ 提交于 2019-12-05 08:04:40
问题 I want to print a bar code on a label using zebra label printer.Barcode printer model is Zebra GK420d . Sticker print area is 5 cm by 10 cm.I want to do it from a php script.By googling I found some examples and implemented in this way $barcode = "sometext"; $labelcode =<<<AAA ^XA ^FO100,75 ^BCN, 100,Y, N, ^FD$barcode^FS ^XZ AAA; file_put_contents('/dev/lpt1',$labelcode); Will it work when i connect the printer and test?What are the settings that i have to apply for this zebra printer in

jZebra - Getting started with raw commands

↘锁芯ラ 提交于 2019-12-05 06:09:28
问题 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"

How do I force a serial port write method to wait for the line to clear before sending its data?

一曲冷凌霜 提交于 2019-12-05 02:06:49
Here's some background on what I'm trying to do: Open a serial port from a mobile device to a Bluetooth printer. Send an EPL/2 form to the Bluetooth printer, so that it understands how to treat the data it is about to receive. Once the form has been received, send some data to the printer which will be printed on label stock. Repeat step 3 as many times as necessary for each label to be printed. Step 2 only happens the first time, since the form does not need to precede each label. My issue is that when I send the form, if I send the label data too quickly it will not print. Sometimes I get

How to print (barcode) labels from a Ruby on Rails Application?

余生颓废 提交于 2019-12-05 01:55:57
问题 My first application I have developed in RoR is for some Kiosk Touchscreen PCs used in our stock. When the stock worker picked up some material he enters the quantity in a Form. Now I want to print a label containing: customer name, material description, quantity, and a barcode on our Zebra printer. How would I do that from a Ruby on Rails Application ? Sending directly the control chars needed for ZPL (Zebra Printer Language) from the controller ? ( not very comfortable ) Create a view in

Can I print with windows phone 8 using Bluetooth to a portable printer?

我与影子孤独终老i 提交于 2019-12-05 00:26:27
问题 I am developing an app on windows phone 8. This app must print tickets using a mobile printer like a Zebra MZ 220 Mobile Printer. I have been googling trying to get information about printing to a bluetooth printer using windows phone 8 but there is not to much information. My fear is to have to start a new development in another mobile operating system like android, just because wp8 does not support printing on bluetooth. Is there any example about it? Is there any portable printer

Zebra printer serbian latin characters

倖福魔咒の 提交于 2019-12-04 12:33:33
I have a problem with Zebra printer RW220 not printing serbian latin characters, like čćžšđ. I developed an android app which uses the printer. The printing part is based on Zebra SDK. Here's the part of the code: private byte[] getConfigLabel() { PrinterLanguage printerLanguage = printer.getPrinterControlLanguage(); byte[] configLabel = null; if (printerLanguage == PrinterLanguage.ZPL) { try { configLabel = "^XA^FO17,16^GB379,371,8^FS^FT65,255^A0N,135,134^FDTEST^FS^XZ".getBytes("UTF-8"); } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); } }