My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Wiki pages
Links

"Had jZebra implemented on Linux Server in 6 minutes. Everyone said printing from php was impossible... After I accepted the security message, it was plug and play! Works on new Firefox and IE." -Aaron Haight

<input type=button onClick="print()" value="Print">
<applet name="jZebra" code="jzebra.PrintApplet.class" archive="./jzebra.jar" width="100" height="100">
      <param name="printer" value="zebra">
</applet>

<script>
      function print() {
         document.jZebra.append("A37,503,0,1,2,3,N,ABC WIDGET CO\n");
         document.jZebra.print();
      }
</script>

Features

  • New! Supports printing basic HTML labels directly to a LaserJet or PostScript compatible printer!
  • Supports Zebra, Epson, Citizen, Intermec printers and many more.
  • Prints barcodes, receipts and more from a web page.
  • Supports thermal printers, label printers, magnetic card printers
  • 100% free and open source
  • Free to use in commercial applications (check license for details)
  • Seamlessly sends commands to your EPL2, ZPLII, CHR, ASCII, RAW, ESC/P printer (and more).
  • Compatible with Windows, Mac OS X, Linux, Solaris clients (and more).
  • Tested with Firefox, Chrome, Safari, Internet Explorer, Opera.
  • Supports COM, parallel, serial, USB, socket, lpr, LPT communication.
  • AJAX compatible by using JavaScript to control print jobs

Download Latest


How It Works

  1. First, jZebra loads in your web browser as a Java applet (similar to a Flash or SilverLight object).
  2. Second, jZebra interfaces with browser interactively via JavaScript.
  3. Third, jZebra gains permission to use locally installed printers via digital signature prompt.
  4. Finally, jZebra spools directly to locally installed printers, allowing hundreds of print jobs to transfer seamlessly from web code to printer.

Getting Started

  • For questions, feedback and updates, subscribe to the jZebra Mailing List on Google Groups:

Configure Your Printer


Spotlight


Update History

  • 03/15/2012: Version 1.3.5 Fixes some weird behavior when RegEx characters "(){}" are used with findPrinter(). Also built against JDK 1.5, since 1.3.4 was rushed against JDK 1.6 and may have broken some backwards compatibility.
  • 03/13/2012: Version 1.3.4 Adds HTML printing support for LaserJets, InkJets, DeskJets, etc. Also attempts to fix a print margin bug with PDFs. See sample.html for more info.
  • 02/22/2012: Version 1.2.3 Includes experimental image printing, including base64 printing for ZPLII capable printers.
  • 02/09/2012: Version 1.2.1 Fixes a problem in sample.html with "List All" printers.
  • 11/09/2011: Version 1.1.9 adds experimental PDF printing, support for printing directly to file (i.e. \\server\printer)
  • 01/30/2011: Front page & logo redesign
  • 01/12/2011: Version 1.1.1 available (not featured, see downloads). Adds a new appendFile() feature similar to original 1.0.3 and older functionality CONFIGPATH="http://site/epl.txt".
  • 01/08/2011: Version 1.1.0 available. Fixes XML parsing error discovered in Internet Explorer. Please note, the JavaScript in sample.html has timing improvements added in lieu.
  • 01/07/2011: Version 1.0.9 available. Adds experimental Cp1252 support, XML message parsing support.
  • 12/08/2010: Version 1.0.7 available for improved digital signature support. Versions 1.0.7 and higher will use the same trusted java signature: see source:/jzebra.ks.
  • 11/20/2010: Version 1.0.6 available for download. Added feature that allows larger print jobs to be spooled as separate jobs to the printer. (Example, every 5 labels spools a new print job)
  • 01/06/2010: An excellent article "RAW Printing from Web Based Application"
  • 04/13/2010: Version 1.0.5 available for download. Fixed "Magic Cookie" issue thank to James at ZenKraft.
  • 12/03/2009: Updated applet tutorial for version 1.0.4.
  • 11/19/2009: Version 1.0.4 available for download. Note: Code changes will need to be made to incorporate new version!!
  • 11/07/2009: Uploaded more screenshots for Ubuntu 9.10 and Windows XP.
  • 11/06/2009: Raw Printing from Mac OSX created in wiki section
  • 10/24/2009: ReasonTransport to test Bluetooth printing capabilities
  • 01/09/2009: TutorialWebApplet added to wiki for 1.0.3 usage
  • 12/30/2008: jZebra 1.0.3 pre-release avaiable: Check the downloads.
  • 11/07/2008: jZebra 1.0.3 under development: Check SVN if curious.
  • 11/06/2008: Added 1.0.2 Bugs/Issues: click to review issues

Printers Reported Working

  • Samsung Bixolon SRP350plus
  • Telly Dascom 1125 (USB)
  • Epson Thermal Printer (COM)
  • Eltron P310i
  • Zebra P310i
  • Zebra LP 2844
  • Zebra TLP2844
  • Citizen CT-S2000 (USB)
  • DOS/LPT1 Printing
  • Print directly to file: i.e. \\server\printer
  • Nippon Primex

Related projects: http://code.google.com/p/ups-php/ http://code.google.com/p/zxing/ http://www.google.com/chrome/intl/en/p/cloudprint.html http://code.google.com/p/escprinter/

Keywords: zpl, pcl, prn, txt, ps, eps, epl, cpcl, esim, direct, ESC k, ESC p, ESC/P, OPOS, Epson Standard Code for Printers, &H1B, HEX, (1BH), CHR(27), ESC, ASCII, CHR$, BASIC, Cloud Printing, PHP, ASP.NET, print dos characters from web browser, dymo, avery label printer, EasyCoder PD4, OPOS Commands, Print PRN files from web browser, fromcharcode, java, javascript, ajax, jquery, COM1, COM2, COM3, LPT1, LPT2, Virtual Serial Port, VSPE, Star TSP, Star printer, gwt, detect printer java web, print directly to the printer from applet, vbtab, vbnewline, Intermec,IBM Proprinter

Powered by Google Project Hosting