Are you running this from Acrobat or from Reader?
I'm adding the specified script with help of pdfstamper from codebehind of my asp.net web app.
Then the page with embeded pdf is displayed with microsoft internet explorer( IE 8) via Reader(updated recently).
Thanks for quick response!
If you look at the reference file you'll see that this method can't be used
Maybe you'll have any ideas how to achieve this?
You can't use addScript in Reader. There's no way around it.
What you can do is embed the script in the file before distributing it to
Everything works correctly until this.setAction is executed and there comes "NotAllowed" error.
Everything is made before distributing pdf to users via browser.