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

Doc.createDataObject not working in Adobe reader 9.1. NotAllowed Error

saboorthakur
Registered: Jun 25 2009
Posts: 56

Please guide me how to get rid of this. The function is written inside a folder level script and is called from a privileged context. When i run adobe acrobat pro it runs fine and gives no errors but the same script when runs inside adobe reader 9 it gives the security error. NotAllowed Error. can anyone explain me how to fix this ???

My Product Information:
Acrobat Standard 9.1.1, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Does your file have file attachment rights in Reader?

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

saboorthakur
Registered: Jun 25 2009
Posts: 56
thanks for your response. kindly guide me how to check this in the reader?
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Press Ctrl+D and look under Security.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Attachement Rights are among the Reader Enabling Rights that require the LiveCycle ES Rights server. If you don't what they are then your form does not have them. Without this right you cannot add, delete, or modify PDF attachements in Reader.

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

saboorthakur
Registered: Jun 25 2009
Posts: 56
Thanks Mr thomp for your great response, I actually want to create a shortcut of current opened file on the user defined location by clicking the toolbar button, for this i am using createDataObject and then exporting it to the user defined location. that file will contain the info related to the shortcut and there is a service running in background which will create shortcut by getting the info form that file. all is going well on professional version but same script is not allowed on reader.is there any way to enable it on the reader or if there is any other way to create shortcut through the js.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You cannot create a new Data Object in Reader. That is not possible without special Reader Rights. So basically it's not possible. Reader is very limited in a lot of ways, that's why it's free.

You say you are running a service on the user's system? Can you run a server? Not a full blown web server, I mean can you write a simple HTTP server to put on the user's system. VS.NET has everything in it you need for this. Reader can submit data to a local sever with an HTTP Request. This is about your only option. Becareful though. In general Acrobat doesn't like document communicating with local servers, but it will allow it.

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