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.
Latest posts by Mark Stephens (see all)
- How we are improving our code quality with IDEA in 2018 - March 7, 2018
- How we are improving our code quality with NetBeans in 2018 - March 1, 2018
- 3 ways that the European Union is changing the way Companies write software in 2018 - January 31, 2018
- IDRsolutions product range update for 2018 - January 22, 2018
- 4 ways Companies can make remote working successful - December 21, 2017