I'm using Acrobat 9 Pro. I have a pdf with an attachment (another pdf).
I created a menu item to open this attachment using exportDataObject (as a trustedFunction). It works until I implement Permission settings. After I set the Permission restrictions to "Changes Allowed: any except extracting pages", my menu item will not open the attachment. I get:
NotAllowedError: Security settings prevent access to this property or method.
Doc.exportDataObject
Is there any way around this? I must keep the permission restrictions for security purposes. Why am I getting this error even from a trustedFunction?
Hope someone can help. Thanks in advance.
I guess that attachment fit into the Other Content category.
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script