Search results
15 sie 2011 · You can declare a global variable anywhere by doing: myVariable = 1; However it's safest if you declare your variable in the top-most scope: var myVariable = 1; The only issue you have to remember is to make sure you don't override myVariable anywhere else.
The examples below demonstrate various techniques for sharing data between different scripting contexts within the Acrobat Scripting environment using the global object. All samples, unless noted otherwise, will operate in all versions of Acrobat and Adobe Reader.
In this section, common problems/tasks are presented, including such topics as highlighting required fields, positioning form fields, duplicating form fields, importing and exporting form data and global variables.
12 gru 2011 · The global object is best used for sharing data in privileged automation scripts, to persist simple data for a single document, or to share temporary data within a document. The scripts described in this article, and more, can be found in the GlobVars_Sample.pdf file.
2 maj 2023 · The glob.js file is programmatically generated and contains cross-session global variables set using the global object’s setPersistent method. The config.js file is used to set user preferences or to customize the viewer UI by adding toolbar buttons or menu items.
9 sie 2021 · You can place a blank PDF form as an attachment into your main PDF form, Acrobat Reader allows opening a PDF attachment and filling it with JavaScript, then the end user can save it.
28 cze 2009 · I set up three user variables (for both usernames and passwords), using Form/Properties/Variables. I then set up a dialogue box on the click event of a button, which requests the username and password. If these match the global variables, then the associated textField is populated with the user's credentials.