githubashto / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 1 forks source link

OSX Lion Unable to Print Raw #87

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi.
I'm having problems to print a simple (and the first) test with jZebra.
I'm using OSX Lion (Cups 1.6) and a TLP 2844.
When I try to print something I receive this error message in Cups:

Unable to convert PostScript file

But my content is simple text, like:

   <script type="text/javascript">
      function print() {
         var applet = document.jZebra;
         if (applet != null) {
            applet.append("I8,A,003\n");
            applet.append("Q799,024\n");
            applet.append("q800\n");
            applet.append("rN\n");
            applet.append("S4\n");
            applet.append("D10\n");
            applet.append("ZT\n");
            applet.append("JF\n");
            applet.append("R16,0\n");
            applet.append("N\n");
            applet.append("A733,373,2,2,2,2,N,\"TEST\"\n");
            applet.print();
         }
      }
   </script>

   <applet name="jZebra" code="jzebra.PrintApplet.class" archive="./jzebra.jar" width="100" height="100">
      <param name="printer" value="zebra">
      <!-- <param name="sleep" value="200"> -->
   </applet><br><br>

   <input type=button onClick="print()" value="Print"><br>

Where is the problem? If I send the same EPL commands by terminal it prints 
fine.
Thanks.

Original issue reported on code.google.com by tres.fin...@gmail.com on 30 Aug 2012 at 3:17

GoogleCodeExporter commented 9 years ago
The CUPS tutorial seems to be having problems for USB attached devices.  I 
think the EPL2 driver is needed to operate properly, but I don't know what 
effect this will have on jZebra.

http://www.fixya.com/support/t1957096-need_driver_zebra_lp_2844_mac_os_x

-Tres

Original comment by tres.fin...@gmail.com on 30 Aug 2012 at 3:18

GoogleCodeExporter commented 9 years ago
Version 1.4.7 and higher adds experimental support for printing via CUPS 
command line.

Try parameter:  document.jzebra.useAlternatePrinting(true);

-Tres

Original comment by tres.fin...@gmail.com on 24 Apr 2013 at 2:39

GoogleCodeExporter commented 9 years ago
Issue 97 has been merged into this issue.

Original comment by tres.fin...@gmail.com on 14 May 2013 at 1:29

GoogleCodeExporter commented 9 years ago
Need confirmation if this is working or not.

Original comment by tres.fin...@gmail.com on 14 May 2013 at 1:29

GoogleCodeExporter commented 9 years ago
I'm afraid I never got it working with USB, but when you use it as a network 
printer, OS X has no issues sending it raw content.

Original comment by tomina...@gmail.com on 15 May 2013 at 12:52

GoogleCodeExporter commented 9 years ago
I believe this was caused by confusion from the tutorial.

Please see the revised tutorial and follow it closely and report back the 
progress.  USB is working fine on OSX 10.8.3 attached USB to a Zebra LP 2844.

Please read this tutorial (it has been completely re-written for OSX 10.8)
http://code.google.com/p/jzebra/wiki/TutorialRawOSX

-Tres

Original comment by tres.fin...@gmail.com on 8 Jun 2013 at 3:58

GoogleCodeExporter commented 9 years ago
I've also confirmed "useAlternatePrinting()" works via cups command line.  
Marking bug as closed/fixed.  Please reopen if you feel this bug was closed in 
error.

Here's what the console says when I use alternate printing:

/usr/bin/lp -d "zebra" -o raw "/tmp/jzebra-spool-1370714502354"

A label comes out every time, so this is proof that the alternate printing 
option works fine.

-Tres

Original comment by tres.fin...@gmail.com on 8 Jun 2013 at 6:05