nicolaj-hartmann / jzebra

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

PDF Size #142

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Using IReport Preview, the PDF size with data is 2 KB. However, when it gets 
printed from the application its around 1 MB. How is this possible? Is there 
any setup/ other problem?

What version of the product are you using? On what operating system?
Java - 1.7.17
Jzebra - PDFRenderer-0.9.1.jar

Original issue reported on code.google.com by balkiind...@gmail.com on 11 Jul 2013 at 3:20

GoogleCodeExporter commented 9 years ago
The only way I know how to print a PDF in Java is to first render it to a 
high-resolution image.  This is very inefficient, but was the only way I could 
figure it out using the PDF-Renderer plugin.

If you are aware of a different way, I would be happy to make the code 
enhancement to correct this.

My assumption is that rendering the document to an image is grossly inflating 
the size of your PDF on it's way to your printer.  This is bad for several 
reasons (memory and latency being two I can think of) but was offered as a 
quick solution for one individual's need many version ago.

I would be very happy with a proposed solution that remedies this.  If someone 
more savvy with pdf-renderer can help, I'd be happy to commit the changes.

-Tres

Original comment by tres.fin...@gmail.com on 11 Jul 2013 at 3:47