lokeshj / jzebra

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

How do I transfer an image to a buffer in a p120i #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I create this statement:
  applet.append(unescape("%1B%50%53%20%30%20%33%30%20.......data....%0D%0A"));
2. applet.print();
3. the printer show this message 'Downloading data' and stay showing it for a 
while
3. Then the printer show a message 'data timeout'

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
jZebra 1.1.7 on ubuntu

to produce the data I separate the image in cmyk (cyan, magenta, yellow and 
black) files. I took the cyan file and extract byte by byte and compress them 
following a procedure made by eltron o zebra.

I don't know what is going on.
Please I need somebody to help me with this.
thanks in advance.

Original issue reported on code.google.com by hreve...@gmail.com on 4 Nov 2011 at 2:12

Attachments:

GoogleCodeExporter commented 9 years ago
This may not necessarily be a bug.  Image construction needs to be precise and 
under a certain size for some printing languages.  It seems you are using an 
Eltron/Zebra model printer.  What printing language you are using? (epl, zpl, 
etc)

Original comment by tres.fin...@gmail.com on 5 Nov 2011 at 1:45

GoogleCodeExporter commented 9 years ago
Yes I am using a Zebra P120i and the language It uses is EPCL.
Do you have some tutorials for doing the printing of images on idcards?
thanks for helping me 

Original comment by hreve...@gmail.com on 7 Nov 2011 at 4:33

GoogleCodeExporter commented 9 years ago
Is EPCL the same as EPL?  Is it EPLI or EPLII?

I started to write the logic to generate the image data applet-side, but hit a 
snag, but that was for ZPLII and it isn't working yet.

In theory, if you send the data in the correct format it will work.  Getting it 
into the correct format has been a struggle for me.  Your syntax looks correct, 
but the binary data needs to be in a very specific format.

Perhaps someone on the jzebra-users@googlegroups.com list has done this.  
You're the first request I've seen, but I'm certain it is possible.

Can you link the PDF from the programmers guide you are using?

-Tres

Original comment by tres.fin...@gmail.com on 7 Nov 2011 at 2:37

GoogleCodeExporter commented 9 years ago
Just a comment to add, code has been revised for ZPLII.  Will work on EPL as 
needed, please email me.

Original comment by tres.fin...@gmail.com on 15 Feb 2012 at 2:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
EPCL is different from EPL, so this was a mistake on my part.  The code changes 
to support this should be minimal as we're already doing it for ZPL.

Currently (version 1.4.5) this support hasn't been added.  Will update this bug 
report when it's done.

-Tres

Original comment by tres.fin...@gmail.com on 22 Aug 2012 at 5:39

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

Original comment by tres.fin...@gmail.com on 22 Aug 2012 at 6:11

GoogleCodeExporter commented 9 years ago
EPL image support has been added with version 1.5.3.  Please try it out and 
post here if it is working.

> applet.appendImage("http://path/to/image.png", "EPL", x_pos, y_pos);

-Tres

Original comment by tres.fin...@gmail.com on 2 Aug 2013 at 4:46

GoogleCodeExporter commented 9 years ago
Closing, marking as fixed.  If you feel this was closed in error, please reopen.

-Tres

Original comment by tres.fin...@gmail.com on 22 Sep 2013 at 7:36