Java print bug

I had a really horrible Java print bug today 🙁

I had a sample PDF file with some large rotated text on one of the pages. It displays fine in our renderer and if I printout the page on its own it also prints correctly. If I print a range of pages, it is still fine. However, if I print the whole Document using Java Printing System, the page is blank. I can see the text is being rendered to the page but JPS just gives me a blank white page. And the issue is not in my code but is deep inside Java.

There is a workaround, which is to turn the huge text into an image or print the pages separately. And it only effects WIndows JVM 1.6 (Java on the Mac is fine). But it is really irritating and I hate such ‘resolutions’.

Still, I’ve now got a bug in my code – I much prefer those as they are usually fixable 😉

What is your worst bug?

This post is part of our “Printing Articles Index” in these articles, we aim to help you understand printing in Java and PDF’s.

Related Posts:

The following two tabs change content below.

Mark Stephens

System Architect and Lead Developer at IDRSolutions
Mark Stephens has been working with Java and PDF since 1999 and has diversified into HTML5, SVG and JavaFX. He also enjoys speaking at conferences and has been a Speaker at user groups, Business of Software, Seybold and JavaOne conferences. He has a very dry sense of humor and an MA in Medieval History for which he has not yet found a practical use.
Markee174

About Mark Stephens

Mark Stephens has been working with Java and PDF since 1999 and has diversified into HTML5, SVG and JavaFX.

He also enjoys speaking at conferences and has been a Speaker at user groups, Business of Software, Seybold and JavaOne conferences. He has a very dry sense of humor and an MA in Medieval History for which he has not yet found a practical use.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>