Adobe 26001360 - Illustrator CS - PC Manual page 195

Scripting guide
Hide thumbs Also See for 26001360 - Illustrator CS - PC:
Table of Contents

Advertisement

Adobe Illustrator CS Scripting Guide
Table 4.68 PNG24 export options — Properties (Continued)
Property
matte
matte color
saving as HTML
transparency
vertical scaling
Notes
This class is used to define a record containing properties that specify options when exporting
a document as a PNG24 file. PNG24 export options can only be supplied in conjunction
with the export command. It is not possible to get or create a PNG24 export options
object.
It is not necessary to specify values for all properties. Default values will be provided for any
properties not specified.
Example 47.1
This handler saves all files in a folder as 24 bit PNG files in HTML format scaled to 50%. Note that
the class property is specified in the record to ensure that Illustrator can determine the save
option class.
-- fileList is a list of aliases to Illustrator files
-- destinationFolder is an alias to a folder where the PNG files are to be saved
on SaveFilesAsPNG24HTML(fileList, destinationFolder)
set destinationPath to destinationFolder as string
repeat with aFile in fileList
tell application "Finder" to set fileName to name of aFile
set newFilePath to destinationPath & fileName & ".png"
R/O
Value type
boolean
RGB color info
boolean
boolean
real
12 Aug 03
What it is
If true, the artboard should be matted
with a color; default: true
The color to use when matting the
artboard. default: {255.0, 255.0, 255.0}
If true, the resulting image be saved
with an accompanying HTML file;
default: false
If true, the resulting image should use
transparency; default: true
The percentage vertical scaling factor to
apply to the resulting image;
range: 0.0–100.0. default: 100.0
195

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents