title: Print barcodes from web page to Zebra printer
body: <p>We're trying to print barcodes from a web page to our Zebra printer.</p>
  
  <p>I'm wondering if there's a way to print them using the printer's own font perhaps using web fonts or if I knew the font name used?</p>
  
  <p>I have been trying to use php barcode generators, that basically generates images containing the barcode. I have in fact been trying this approach for a few days already, without success.</p>
  
  <p>The problem is when I print them it's not readable by the scanners. I have tried to change the image resolution to match that of the printer (203dpi), also tried playing with the image size and formats, but the barcodes after printed still can't be scanned.</p>
  
  <p>So does anybody have experience with this?</p>
  
  <p>Printer: Zebra TLP 2844</p>
  
  <p>Barcodes required per page:</p>
  
  <ul>
  <li>01 Code39 horizontal (scanable only if printed at very specific size and browser)</li>
  <li>01 Code128 vertical (still can't get it to work, print is always very blurry and won't get scanned)</li>
  </ul>
  
  <p>===========</p>
  
  <p>I've made a little bit of progress, I found out this printer supports EPL2 language, so I'm trying to use it to print out the barcodes.</p>
  
  <p>First I needed to enable pass through mode, I did that on Printer Options > Advanced Setup > Miscellaneous.</p>
  
  <p>Now I'm able to print barcodes impeccably using the printer's built-in font :D using this command:</p>
  
  <p>ZPL:
  B10,10,0,1,2,2,60,N,"TEXT-GOES-HERE"
  :ZPL</p>
  
  <p>But I can only print it from Notepad, I'm still unable to print this from a browser... It's probably a problem with LF being replaced with CR+LF...</p>
  
  <p>How to overcome this problem??</p>
  
  <p>===========</p>
  
  <p>The label I'm trying to print actually has a bit of text before the barcode, with some html tables formatting it nicely. So I need to print this first, and in the middle I need to stick in a nice label and then add some more text.</p>
  
  <p>So I can't use pure EPL2 to print the whole thing, I'm wondering if I can use some of both html + EPL2 + html to achieve my goal or is that not allowed?? =/</p>