14
Introduction
Interacting with Databases
It is possible to use Acrobat JavaScript to interact with databases through an Open
Database Connectivity (ODBC) connection. This means that you may use Acrobat
JavaScript objects to connect to a database, retrieve tables, and execute queries. The object
model associated with database interaction is centered on the
ADBC
object, which
provides an interface to the ODBC connection. The
ADBC
object interacts with other
objects to facilitate database connectivity and interaction:
DataSourceInfo
,
connection
,
statement
,
Column
,
ColumnInfo
,
row
, and
TableInfo
. These
objects may be used in document-level scripts to execute database queries.
Chapter Goals
At the end of this chapter, you will be able to:
●
●
●
●
Obtain a list of accessible databases.
Connect to a database.
Execute an SQL query.
Access table, row, and column properties and data.
Contents
Topics
Introduction to ADBC
Establishing an ADBC Connection
Executing SQL Statements
Acrobat JavaScript Scripting Guide
237