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!
Did you know...
IDRsolutions offers a whole range of online file converters to convert PDF and Microsoft Excel, Word and Office Documents to HTML5, SVG or image formats?
It is free to use for single file conversions and also includes Developer links if you want to use our commercial software for bulk conversions. Find out more on this page