11.2.1 for Windows

Table Of Contents
Foxit PDF Editor
Chapter 9: Forms User Manual
315
You can click Save to save a copy of your JavaScript code, or click Cancel to revoke
your operation.
JavaScript Editor
You can use the built-in JavaScript editor in Foxit PDF Editor (or an external JavaScript
editor if you have specified one in File > Preferences > JavaScript) to create and edit
all the JavaScripts in a PDF file. To open the JavaScript editor, choose Form >
JavaScript > Edit All JavaScripts. In the JavaScript Editor dialog box, click Go to to
jump to a specific line of code. After editing the JavaScripts, click OK to save it.
Optional Database connectivity to Windows ODBC
The Optional Database Connectivity plug-in is a JavaScript object inside Foxit PDF
Editor, allowing you to connect to Windows ODBC (Open Database Connectivity) data
sources. It provides some basic JavaScript properties and methods to gain increased
customization options and data accuracy to access to information databases. More
importantly, JavaScript can be used to execute SQL commands and retrieve data,
which can, in turn, be used to populate a PDF file. Also, developers can create
A. In the pop-up JavaScript
Console dialog box, type your
JavaScript code, or click Open
and select one of the file with
JS format.
B. Click Run button to run your
JavaScript code. You will be
prompted that the code has
run successfully. When the
code goes wrong, it gives you
an error message.