PDF Adobe Import Automation Options

Since the Import Options dialog is not displayed when the program is driven from an automation script, an options string can be specified in the script. The string consists of comma-separated parameters, which specify the behavior of the various import options. A typical example would be:

 

 "Resolution=300, WhichPage=7"

 

This would set the resolution of the images in the PDF file to 300 DPI and imports only page 7.  

 

Option

Action

Default

Description

Filter

string

 

PDF

WhichPages

0 = all pages

> 1 = specific page

0

The page number of the page to import. 0 imports all pages. Type the specific page number to import only that page.

Resolution

Value from 50 to 1200

150

The resolution of the imported PDF in DPI.

AntialiasVector

0 = false

1 = true

1

Turns on/off the smoothing of vector objects in the imported PDF file, such as lines and polygons.

AntialiasRaster

0 = false

1 = true

1

Turns on/off the smoothing of text and images in the imported PDF file.

 

 

Example

This example shows how to import a PDF file with the various options.

 

CommandApi.Construct("Import")

CommandApi.Option("GuiEnabled", "False")

CommandApi.Option("ClearOptions", "False")

CommandApi.Option("Filter", "pdf")

CommandApi.Option("Options", "WhichPages=2; Resolution=300; AntialiasVector=0, AntialiasRaster=1")

CommandApi.Option("Path", "C:/Path/To/Export/file.pdf")

CommandApi.Option("PersistOptions", "True")

CommandApi.Option("ModuleId", "0")

CommandApi.Do()

 

 

 

See Also

Automation Model