Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adobe Acrobat JavaScript: notAllowed Error in Console!

Status
Not open for further replies.

unexist

Technical User
Aug 29, 2007
1
AT
Hi,

I have a big problem! I have a Document and in this document there are some buttons. And this buttons should run some Java Script Code. I wrote some following Code:

this.insertPages({
nPage: -1,
cPath: "/C/test.pdf",
nStart: 1,
nEnd: 5
});

I hope the code is clear. All i wanted to do is to add some pages from another PDF per klicking this button.
But when i open the DebugConsole it says:
'NotAllowedError: Security settings prevent access to this property or method.'

Anyone has a workaround?


 
Is cPath correct? Meaning is this the path to the PDF's that you want to insert? Try using just file name (meaning that the main PDF file should be in the same directory).
Klaz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top