ramonlopes / jzebra

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

Blank page on Win64 7 - base64 pdf printing #242

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

What steps will reproduce the problem?
1. Open the attached sample.html and modify codebase and .jar url
2. Open a browser in Windows and check the sample.html
3. Detect your printer and use the modified print base 64 function (I put there 
a specific pdf I want to print)

What is the expected output? What do you see instead?
On Mac it works fine and I got the PDF. In windows, I got nothing at all, but 
as you can see in the log, it says everything was fine.

What version of the product are you using? On what operating system?
Win7 64, plugin 1.8.0, HP Officejet Pro 8620

Please provide any additional information below.
I also attached the Java logs related to the Mac/Win sample.html running 
(sample_*.log),
 and my main problem which you can see in the prod_win64_7.log: In prod env, I get an exception.

Original issue reported on code.google.com by wwger...@gmail.com on 22 Apr 2015 at 12:55

Attachments:

GoogleCodeExporter commented 8 years ago
Also are you using 'qz.print()' or 'qz.printPS()' ?

The PDF data shouldn't be echoed to the console like that.

Also make sure you're appending the data correctly via:

> qz.append64("data:application/pdf;base64,Ck4KcTYw...")

Without the data:x/x;base64 prefix, the software won't know that it is a PDF.

-Tres

Original comment by tres.fin...@gmail.com on 22 Apr 2015 at 1:10