Adobe acrobat 7.0.5 sdk User Manual

Page of 122
Working with PDF Documents
Interacting with OBDC Databases
5
56
Interacting with OBDC Databases
Acrobat JavaScript provides an ODBC-compliant object model called Acrobat Database 
Connectivity (ADBC), which can be used in document-level scripts to connect to a database 
for the purposes of inserting new information, updating existing information, and deleting 
database entries. ADBC provides a simplified interface to ODBC, which it uses to establish a 
connection to a database and access its data, and supports the usage of SQL statements for 
data access, update, deletion, and retrieval.
To use ADBC, ODBC must be installed on a client machine running a Microsoft Windows 
operating system. Note that ADBC does not provide security measures with respect to 
database access; it is assumed that the database administrator will establish and maintain 
the security of all data.
P r i nt i n g   P D F   Fi l e s
Using the Acrobat SDK, you can control the way that Acrobat, Adobe Reader or your 
external application prints PDF files. 
Customizing and Automating Printing
Using any of the Acrobat technologies, you can customize the way that a PDF document is 
printed. 
Printing from Acrobat JavaScript
Since printing involves sending pages to an output device, there are many options that can 
affect print quality. Acrobat JavaScript can be used to enhance and automate the use of 
these options in print production workflows, primarily through the use of the PrintParams 
object. 
For a complete list of parameters, see the Acrobat JavaScript Scripting Guide.
Printing from a Plug-in
You can use 
AVDoc
 methods to customize and control how a PDF file is printed from 
Acrobat or Adobe Reader. Depending on the methods you use, a user interface is either 
invoked or not. The 
AVDocDoPrint
 method invokes the print user interface, where the 
user can then specify printing parameters.
The 
AVDocPrintPages
 method prints a document to the current printer using the 
current print settings and job settings with no user interface. You can specify a page range, 
a PostScript version and whether to shrink the pages to fit the printer.