I incrementally updated one pdf for 2 to 3 times, now that pdf is not showing expected annotations when opened in Preview app on MAC but it shows those annotations on Adobe acrobat reader. You can check pdf at http://www.filedropper.com/temp_6 what must be the problem ?
2
votes
I have downloaded your pdf and compared on both apps - adobe and preview. working fine here on both apps. please elaborate your question more so as to get the quick solution. Also i am confused about "annotations". page number of those annotation will help
– Nayan
I have added annotations(highlight,underline etc..) on 1st page only, open it in textwrangler, there u can see the incremental update at the end. I tried opening it in Preview on yosemite but its not showing those annotations.
– Mayur Kothawade
ok Thanks. I couldn't see annotations in preview as you mentioned. What I have done is opened original doc in adobe and re-saved it with other name and opened that new doc in preview. This solved your issue. Now I can see annotations on first page in preview. So try it.
– Nayan
No Nayan the thing is I am trying to modify pdf programmatically, when u save it with adobe then there can be chances that adobe will rewrite it again!
– Mayur Kothawade
1 Answers
1
votes
The value of the /Rect entries is the problem:
/Rect[ 0 774 0 774]
This is in conflict with the QuadPoints value which ends in an annotation region defined by the Rect value (a rect with a height of 0 and a width of 774 points). This behaviour is defined in the PDF specification:
QuadPoints shall be ignored if any coordinate in the array lies outside the region specified by Rect.
Additionally I would recommend to use the P key/value, too. Some readers may require this as well - though it is optional.