This content has been marked as final. Show 3 replies
Actually the JS API Reference for ScreenAnnot.rect does say it is restricted. If you'll notice the "D" in column 2 of the quickbar and then read what that "D" means, this is what the documentation says:
Writing to this property or method dirties (modifies) the PDF document. If the document is subsequently saved, the effects of this method are saved as well. (In Adobe Reader, the document requires specific rights to be saved.)
We are using the same documentation.
I do not intend to save the PDF. I just want to achieve some graphical effects. And that worked in Reader 7.
By the way, the Field.rect property, for instance, has not only a "D" sign in column 2 , but also a "F" sign in column 4 (sic!). ("F" is a new addition as compared to the JS API v7). But it still works in Reader 8 without any forms rights!!!
So that's why I am angry, if you see what I mean
Hmmm... you're right. Given your example PDF you should not be getting that error. This should be logged as a bug, just hard to say if it is a bug with the API or a bug in the documentation.