I have been looking at a PDF file today which has a rather ‘interesting’ feature. If you look at the screenshot, you will see that in Mac Preview, the text is white, whereas in Acrobat 9.0 it is black…
The reason that Preview is displaying it white is because the color is set outside the text command block. I presume that Acrobat is ignoring the color setting for exactly the same reason. Acrobat goes to great lengths to try and clean up sloppy PDFs and display them rather than enforce the specification. Interestingly in Acrobat on one of our Windows boxes, the text is white…
This post is part of our “Understanding the PDF File Format” series. In each article, we discuss a PDF feature, bug, gotcha or tip. If you wish to learn more about PDF, we have 13 years worth of PDF knowledge and tips, so click here to visit our series index!
Do you need to write or read JPEG in Java?
We have an easy guide on how to write JPEG in Java using ImageIO and JDeli.
You can learn how to read/write most of the image files in ImageIO. However, it gives little control over the process.
JDeli is easy to use and offers complete support, so why not give JDeli a try?