I have been looking at some Annotation issues and came across an interesting feature in a sample PDF file. I viewed it in Acrobat’s viewer and saw the following.
It is a freetext annotation with an AP object to define how it appears. It was not appearing in our PDF viewer so I dug down and found we were not reading the AP object (number 22). Then I opened up the raw PDF file to see why, which is where it gets very interesting…
The PDF only contains 21 objects and there is no AP object attached to the Annotation. The object that I am seeing in Adobe Acrobat is actually a ‘synthetic’ object created by Adobe – it does not exist in the file. So does it really exist?
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 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
- My experience of a Turkish bath (visiting Istanbul for DevFest) - November 24, 2017
- My 5 key takeaways from JavaOne 2017 - October 6, 2017