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

javascript security question -- code no longer works

barcrofter
Registered: Nov 5 2009
Posts: 3

I have working VB.NET code that opens a blank pdf document and appends a series of pages. It starts:

Dim Doc1 As Acrobat.AcroPDDoc

Doc1.Open(fp)

where fp is a path to an existing blank pdf file.

last week this code started to raise an exception the first time it was used.

My question: could this be the result of an acrobat security setting just applied by my organization. If so how could I test for its presence.

My Product Information:
Acrobat Standard 9.2, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Did this happened right after you updated to 9.2? What's the exception?

It would be very odd under normal circumstances for this to be a security issue. After all you have to open documents, and opening alone is not a security offense. But Acrobat did rollout new JavaScript security restrictions in 9.2. There's a new black list for JS operation. Maybe the IAC is affected by the same restrictions.

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