Quite often people want to obscure or remove critical data in a PDF file. For example they want to send us a PDF file to examine but remove personal or classified data.
One common way to do this is to have a black box drawn over the text which hides the text or image. This works fine for plain viewing but does not actually remove the data.
The problem is that the PDF file consists of a stream of commands. So while the text cannot be seen when the PDF is displayed, it can easily be viewed by examining the text stream.
So if you want to make sure text cannot be seen, you need to physically modify the PDF text data and not just draw over it.
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!
Latest posts by Mark Stephens (see all)
- 3 Reasons to attend NetBeans Day in Athens (17-18 April 2015) - March 24, 2015
- NetBeans Day UK – Friday 29th May 2015 - March 23, 2015
- Why we are abandoning ImageIO and JAI for Image support in our commercial Java code - March 19, 2015
- First impressions of the new RaspberryPi for Raspbian, Riscos, Java and NetBeans - March 3, 2015
- Converting a Swing application into JavaFX – Listeners and fast scrolling - February 3, 2015