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

global variable access across pdfs

itsmikem
Registered: Jul 14 2009
Posts: 44

Hi list...

I'm confused about working with globals within an Acrobat 8 package. What is the best way to access globals across pdfs when Javascript preferences are set to the default "Enable global object security policy"? I've tried placing a script at the folder-level and when reopening Acrobat, I get a syntax error in the console. How do I implement this? And how do I then reference the globals in pdfs? Can I then get and set them from any pdf in the pdf package?

If "Enable global object security policy" is unchecked in the preferences, I can get and set globals easily from any other pdf...but that's not the default. Do I need to compensate programatically for these two scenarios?

thanks,
Michael M.

My Product Information:
Acrobat Pro 8.1.2, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2399
What's your script and which error message are you getting?

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

itsmikem
Registered: Jul 14 2009
Posts: 44
Thanks for your reply, try67.

Oddly enough, I'm not getting the error message in the console now, so I think it was an issue with my trustedFunction syntax.

Do I have to say this.disclosed = true; in every pdf in the package? How best to get and set the variable, and where is the ideal place for it to be initialized? The cover sheet?

thanks,
- Michael M.