These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

exportDataObject resulting in NotAllowedError

annot63
Registered: Aug 13 2009
Posts: 6

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.

My Product Information:
Acrobat Pro 9.2, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
On the password security dialog, Select the "Enable copying of text, images, and other content". This worked for me.

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

annot63
Registered: Aug 13 2009
Posts: 6
Thank you for the quick response!

Unfortunately, I didn't want to allow the user to copy text either. :(