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

What's change with acro9 script?

luciano
Registered: Feb 8 2007
Posts: 23

Hello,
i'd like to know which are the major changement into acrobat 9 regarding javascript.
i've developed some scripts with adbc connection to mdb database and other loaddefault elements. well all worked perfectly with acrobat 8 but when i passed to release 9 it didn't work.
what's the matter? i tried to explore the new referenceof javascript but with no result. problem looks like to regard loaddefault because after inserting value the connection is established and all return to work. colud i think is connected to advanced protection ?
thanks to all, i hope to recieve some info about.

try67
Expert
Registered: Oct 30 2008
Posts: 2398
Mostly security settings. There's some info in the very inconvenient online reference, under Changes (or something similar). I wanted to tell you exactly where to look, but it doesn't seem to load for me at the moment...

Edit: It's under JavaScript - JavaScript for Acrobat API Reference - New Features and Changes

But your best chance is check the console and see exactly which command causes the problem, and then look it up in the (new) reference. You can also post it here.

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

gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
You can find all the changes and the full reference at [url=http://www.adobe.com/devnet/acrobat/javascript.php]Acrobat Developer Center - JavaScript for Acrobat[/url]. You will need to open the table of contents and look for the 'what's new' section.

George Kaiser

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Have you checked the console window so see if a specific error is reported?

The ADBC object is turned off by default. You have to manually change a registry setting to turn it on.
http://kb2.adobe.com/cps/333/333472.php

Support for this object is vanishing quickly. Which means that it may start to operate erradically. If I were you I'd start to look for a different way to connect to your DB. For example, using a LiveCycle form as a proxy.

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