barcode-printing

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

送分小仙女□ 提交于 2019-12-03 21:57:53
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 order to print.I have no idea on zebra printers settings.And also file_put_contents will copy the code to

Make text in ZPL label bold or underlined?

隐身守侯 提交于 2019-12-03 17:02:52
问题 Due to a new EU law every food packaging label has to outline possible allergy-causing ingredients by either styling them bold or underlined in the ingredients list. Currently I'm printing my labels via ZPL to zebra printers. I checked the ZPL manuel 1 & 2 and didn't find way how to print something in bold or underlined. Is there any way to do this? Example: "Ingredients: water, sugar, milk, cheese, chocolate" SHOULD BE NOW: "Ingredients: water, sugar, milk , cheese , chocolate" My current

Make text in ZPL label bold or underlined?

送分小仙女□ 提交于 2019-12-03 05:16:36
Due to a new EU law every food packaging label has to outline possible allergy-causing ingredients by either styling them bold or underlined in the ingredients list. Currently I'm printing my labels via ZPL to zebra printers. I checked the ZPL manuel 1 & 2 and didn't find way how to print something in bold or underlined. Is there any way to do this? Example: "Ingredients: water, sugar, milk, cheese, chocolate" SHOULD BE NOW: "Ingredients: water, sugar, milk , cheese , chocolate" My current label code for the ingredients is: ^CF0,15 ^FO13,245 ^FB530,2,,L, ^FH^FD__VAR_INGREDIENTS__ ^FS Thank you

Blurry and large image barcode being generated using a plugin in Windows Form

馋奶兔 提交于 2019-12-02 12:35:36
问题 Going through the steps mentioned here and using IDAutomationCode39, I am getting the barcode image, however they are very blurr and only scans bigger size images. My barcode id will be upto 30 characters long, which is causing a very wide barcode image. Where could the problem lie? Is it the IDAutomationCode39 or my setting in my button click event below? private void button1_Click(object sender, EventArgs e) { string abbre = GenerateProdCodeFromProductName(); txt2.Text = abbre; string

Blurry and large image barcode being generated using a plugin in Windows Form

别说谁变了你拦得住时间么 提交于 2019-12-02 04:39:41
Going through the steps mentioned here and using IDAutomationCode39, I am getting the barcode image, however they are very blurr and only scans bigger size images. My barcode id will be upto 30 characters long, which is causing a very wide barcode image. Where could the problem lie? Is it the IDAutomationCode39 or my setting in my button click event below? private void button1_Click(object sender, EventArgs e) { string abbre = GenerateProdCodeFromProductName(); txt2.Text = abbre; string barcode = txt1.Text; Bitmap bitm = new Bitmap(barcode.Length * 45, 160); bitm.SetResolution(240, 240); using

Convert image to GRF format

情到浓时终转凉″ 提交于 2019-12-02 02:08:09
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... 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 myConvertedImage.GRF Someone knows how can I convert the images to GRP format in Linux? You're over-thinking this.

In a PDF417 barcode where number of columns are fixed, how would I calculate the number of rows required for some text?

丶灬走出姿态 提交于 2019-12-01 14:00:43
I need to generate a PDF417 barcode from some text. I have an API (that I didn't create) that generates a PDF417 barcode given the data, number of rows and number of columns (among other parameters irrelevant to the question). My PDF417 barcode uses text encoding. This means 1 codeword can hold up to 2 characters. Now, the number of columns HAS to be fixed because I'm printing this barcode in a very constrained space. The following is what I have inferred from this document (Refer page 38 - Sizing a barcode): Let number of codewords per row, CWPerRow = 7. Number of codewords required for some

In a PDF417 barcode where number of columns are fixed, how would I calculate the number of rows required for some text?

南楼画角 提交于 2019-12-01 13:10:43
问题 I need to generate a PDF417 barcode from some text. I have an API (that I didn't create) that generates a PDF417 barcode given the data, number of rows and number of columns (among other parameters irrelevant to the question). My PDF417 barcode uses text encoding. This means 1 codeword can hold up to 2 characters. Now, the number of columns HAS to be fixed because I'm printing this barcode in a very constrained space. The following is what I have inferred from this document (Refer page 38 -