Adobe 65010248 Scripting Guide - Page 12

for setting the FXG file format version. There is only one option, A new type

Page 12 highlights

CHAPTER 1: Introduction Changes since CS3 12 ➤ A new collection, NonNativeItems, contains a collection of NonNativeItem objects. ➣ AppleScript - non native items of document 1 ➣ JavaScript - app.activeDocument.nonNativeItems ➣ VBScript - App.ActiveDocument.NonNativeItems ➤ A new FXG file format supports designer-developer workflow, by allowing an Illustrator document to be saved as an FXG file containing XML-style descriptions of Illustrator graphical items, which can then be used in other FXG/XML-based applications. ➣ AppleScript - fxg ➣ JavaScript - DocumentType.FXG ➣ VBScript - AiDocumentType.aiFXG ➤ Two new PDFX standards were added, PDFX32002 and PDFX42007. ➤ A new type, FXGVersion, for setting the FXG file format version. There is only one option, FXG version 1.0. ➣ AppleScript - version: version 1.0 ➣ JavaScript - FXGVersion.VERSION1.0 ➣ VBScript - AiFXGVersion.aiVersion1.0 ➤ A new type, FiltersPreservePolicy, which defines whether to preserve appearance and editability of filters when saving to FXG. Available options are ExpandFilters, RasterizeFilters, and KeepFiltersEditable. ➣ AppleScript - filters policy: keep filters editable ➣ JavaScript - FiltersPreservePolicy.KEEPFILTERSEDITABLE ➣ VBScript - AiFiltersPreservePolicy.aiKeepFiltersEditable ➤ A new type, GradientsPreservePolicy, which defines whether to preserve appearance and editability of gradients when saving to FXG. Available options are RasterizeGradients and KeepGradientsEditable. ➣ AppleScript - gradients policy: keep gradients editable ➣ JavaScript - GradientsPreservePolicy.KEEPGRADIENTSEDITABLE ➣ VBScript - AiGradientsPreservePolicy.aiKeepGradientsEditable ➤ A new type, TextPreservePolicy, which defines whether to preserve appearance and editability of text when saving to FXG. Available options are OutlineText, RasterizeText, and KeepTextEditable. ➣ AppleScript - text policy: keep text editable ➣ JavaScript - TextPreservePolicy.KEEPTEXTEDITABLE ➣ VBScript - AiTextPreservePolicy.aiKeepTextEditable

  • 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
12
A new collection,
NonNativeItems
, contains a collection of
NonNativeItem
objects.
AppleScript —
non
native
items
of
document
1
JavaScript —
app.activeDocument.nonNativeItems
VBScript —
App.ActiveDocument.NonNativeItems
A new FXG file format supports designer-developer workflow, by allowing an Illustrator document to
be saved as an FXG file containing XML-style descriptions of Illustrator graphical items, which can then
be used in other FXG/XML-based applications.
AppleScript —
fxg
JavaScript —
DocumentType.FXG
VBScript —
AiDocumentType.aiFXG
Two new PDFX standards were added, PDFX32002 and PDFX42007.
A new type,
FXGVersion
, for setting the FXG file format version. There is only one option,
FXGversion1.0
.
AppleScript —
version:
version
1.0
JavaScript —
FXGVersion.VERSION1.0
VBScript —
AiFXGVersion.aiVersion1.0
A new type,
FiltersPreservePolicy
, which defines whether to preserve appearance and editability
of filters when saving to FXG. Available options are
ExpandFilters
,
RasterizeFilters
, and
KeepFiltersEditable
.
AppleScript —
filters
policy:
keep
filters
editable
JavaScript —
FiltersPreservePolicy.KEEPFILTERSEDITABLE
VBScript —
AiFiltersPreservePolicy.aiKeepFiltersEditable
A new type,
GradientsPreservePolicy
, which defines whether to preserve appearance and
editability of gradients when saving to FXG. Available options are
RasterizeGradients
and
KeepGradientsEditable
.
AppleScript —
gradients
policy:
keep
gradients
editable
JavaScript —
GradientsPreservePolicy.KEEPGRADIENTSEDITABLE
VBScript —
AiGradientsPreservePolicy.aiKeepGradientsEditable
A new type,
TextPreservePolicy
, which defines whether to preserve appearance and editability of
text when saving to FXG. Available options are
OutlineText
,
RasterizeText
, and
KeepTextEditable
.
AppleScript —
text
policy:
keep
text
editable
JavaScript —
TextPreservePolicy.KEEPTEXTEDITABLE
VBScript —
AiTextPreservePolicy.aiKeepTextEditable