Adobe 65010248 Scripting Guide - Page 15

support printing of multiple artboards., Two new properties in

Page 15 highlights

CHAPTER 1: Introduction Changes since CS3 15 ➤ A new class, Artboard, defines an artboard object or artboard in a CS4 document. It has the following properties: ArtboardRect, RulerPAR, ShowRulers, ShowCenter, ShowCrossHairs, ShowSafeAreas, and ShowScreenEdge. ➣ JavaScript - app.activeDocument.artboards[0] ➣ AppleScript - artboard 1 of document 1 ➣ VBScript - App.ActiveDocument.Artboards(1) ➤ A new collection, Artboards, contains all Artboard objects in a document. It has the following methods: Remove, Add, GetActiveArtboardIndex, and SetActiveArtboardIndex. ➣ AppleScript - artboards of document 1 ➣ JavaScript - app.activeDocument.artboards ➣ VBScript - App.ActiveDocument.Artboards ➤ Two new properties in the PrintJobOptions class, PrintAllArtboards and ArtboardRange, support printing of multiple artboards. ➤ A new type, RasterizationColorModel, enables the color model to be specified as default, grayscale, or bitmap; for example: ➣ AppleScript - color model: grayscale rasterization ➣ JavaScript - RasterizationColorModel.GRAYSCALE ➣ VBScript - AiRasterizationColorModel.aiGrayscale ➤ A new type, AntiAliasingMethod, controls the type of rasterization method used in the rasterization: none, art optimized, and type optimized; for example: ➣ AppleScript - antialiasing method: art optimized ➣ JavaScript - AntiAliasingMethod.ARTOPTIMIZED ➣ VBScript - AiAntiAliasingMethod.aiArtOptimized ➤ A new class, RasterEffectOptions, specifies a document's raster-effect settings. Its properties are ColorModel, Resolution, Transparency, AntiAliasing, ClippingMask, ConvertSpotColors, and Padding. ➣ AppleScript - raster effect settings of document 1 ➣ JavaScript - app.activeDocument.rasterEffectSettings ➣ VBScript - App.ActiveDocument.RasterEffectSettings ➤ A new class, RasterizeOptions, specifies options that may be used when rasterizing artwork. Its properties are ColorModel, Resolution, Transparency, AntiAliasing, ClippingMask, ConvertSpotColors, ConvertTextToOutlines, IncludeLayers, BackgroundBlack, and Padding. ➣ AppleScript - rasterize document 1 uses rasterize options ➣ JavaScript - app.activeDocument.rasterize uses rasterizeOptions ➣ VBScript - App.ActiveDocument.Rasterize uses RasterizeOptions

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57

C
HAPTER
1: Introduction
Changes since CS3
15
A new class,
Artboard
, defines an artboard object or artboard in a CS4 document. It has the following
properties:
ArtboardRect
,
RulerPAR
,
ShowRulers
,
ShowCenter
,
ShowCrossHairs
,
ShowSafeAreas
,
and
ShowScreenEdge
.
JavaScript —
app.activeDocument.artboards[0]
AppleScript —
artboard
1
of
document
1
VBScript —
App.ActiveDocument.Artboards(1)
A new collection,
Artboards
, contains all
Artboard
objects in a document. It has the following
methods:
Remove
,
Add
,
GetActiveArtboardIndex
, and
SetActiveArtboardIndex
.
AppleScript —
artboards
of
document
1
JavaScript —
app.activeDocument.artboards
VBScript —
App.ActiveDocument.Artboards
Two new properties in the
PrintJobOptions
class,
PrintAllArtboards
and
ArtboardRange
,
support printing of multiple artboards.
A new type,
RasterizationColorModel
, enables the color model to be specified as
default
,
grayscale
, or
bitmap
; for example:
AppleScript —
color
model:
grayscale
rasterization
JavaScript —
RasterizationColorModel.GRAYSCALE
VBScript —
AiRasterizationColorModel.aiGrayscale
A new type,
AntiAliasingMethod
, controls the type of rasterization method used in the rasterization:
none
,
art
optimized
, and
type
optimized
; for example:
AppleScript —
antialiasing
method:
art
optimized
JavaScript —
AntiAliasingMethod.ARTOPTIMIZED
VBScript —
AiAntiAliasingMethod.aiArtOptimized
A new class,
RasterEffectOptions
, specifies a document’s raster-effect settings. Its properties are
ColorModel
,
Resolution
,
Transparency
,
AntiAliasing
,
ClippingMask
,
ConvertSpotColors
, and
Padding
.
AppleScript —
raster
effect
settings
of
document
1
JavaScript —
app.activeDocument.rasterEffectSettings
VBScript —
App.ActiveDocument.RasterEffectSettings
A new class,
RasterizeOptions
, specifies options that may be used when rasterizing artwork. Its
properties are
ColorModel
,
Resolution
,
Transparency
,
AntiAliasing
,
ClippingMask
,
ConvertSpotColors
,
ConvertTextToOutlines
,
IncludeLayers
,
BackgroundBlack
, and
Padding
.
AppleScript —
rasterize
document
1
uses
rasterize
options
JavaScript —
app.activeDocument.rasterize uses rasterizeOptions
VBScript —
App.ActiveDocument.Rasterize uses RasterizeOptions