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

app.OpenDoc

vollenweider
Registered: Jun 23 2007
Posts: 8

In Acrobat 8.1 WIN XP the following command does not work (it worked in 7):
 
var otherDoc = app.openDoc("/c/temp/myDoc.pdf");
 
Error Message: NotAllowedError
 
I use this command when opening a PDF-document (the command works when pressing a button). I also tried a trusted function with the same result.
 
Question: How do I use app.openDoc when I want (during opening of a PDF) to open another PDF?

My Product Information:
Acrobat Pro 8.0999999999999996447286321199499070644378662109375, Windows
pddesigner
Registered: Jul 9 2006
Posts: 858
The JavaScript codes have been changed in Acrobat 8. Some codes written for version 7 will not work in version 8. You need to download and review the new Javascript reference manual for Acrobat 8 to see the code changes that were made.

My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.

vollenweider
Registered: Jun 23 2007
Posts: 8
Thanks Eugene

I compared the Javascript references 7.05 and 8.1 and did not discover any difference in the command app.openDoc. It does NOT work in 8.1 when it is executed during opening a PDF-file. In 7 it works fine

Martin