12.07.2015 Views

Foxit PhantomPDF 5.5 - Parent Directory

Foxit PhantomPDF 5.5 - Parent Directory

Foxit PhantomPDF 5.5 - Parent Directory

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Foxit</strong> <strong>PhantomPDF</strong> <strong>5.5</strong>User ManualTo active the JavaScript console, select Forms > JavaScript Console, and do the following:A. In the pop-up Javascript Consoledialog box, type your JavaScriptcode, or click Open and select oneof the file with JS format.B. Click Run button to run yourJavaScript code. You will beprompted that the code has runsuccessfully. When the code goeswrong, it gives you an errormessage.You can click Save to save a copy of your JavaScript code, or click Cancel to revoke your operation.Using Document JavaScript CommandDocument JavaScripts are variable and function definitions that are generally useful to a givendocument, but are not applicable outside the document.Variable definitions: Define variables at the document level to make them visible to anyexecuting script.Function definitions: Define functions at the document level that support the userinteraction with the document. These functions may be utility functions for handlingcommon tasks for string or number manipulation, or functions that execute lengthy scriptscalled by actions initiated by a user interacting with form fields, bookmarks, page changes,etc.To create or access document level scripts in <strong>Foxit</strong> <strong>PhantomPDF</strong>, select Forms > DocumentJavaScript… The pop-up Java Script Functions dialog box enables you to add, modify, or deletedocument level scripts. All the document level scripts are stored within the PDF document.In Java Script Functions dialog box, you will see the following buttons:147

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!