FlattenerPreset

A preset that contains transparency flattener properties.

Methods:

addEventListener, duplicate, extractLabel, getElements, insertLabel, remove, removeEventListener, toSource, toSpecifier

Objects:

Boolean, EventListeners, Events, FlattenerLevel, Number, Object, String,

Property Listing

Property

Type

Access

Description

clipComplexRegions

Boolean

read/write

If true, ensures that the boundaries between vector and rasterized artwork fall along object paths.

convertAllStrokesToOutlines

Boolean

read/write

If true, converts all strokes to outlines and ensures that stroke widths remain constant during flattening. Note: Can cause thin strokes to appear slightly thicker than their original width. Affects all strokes, not only strokes involved in the transparency.

convertAllTextToOutlines

Boolean

read/write

If true, converts all text to outlines and discards all type glyph information on spreads with transparency; ensures that the width of text strokes remains constant during flattening. Note: Can cause small fonts to appear slightly thicker when viewed in Acrobat or printed on low-quality desktop printers, but does not affect type quality when printed on high-resolution printers or imagesetters.

eventListeners

EventListeners EventListener

readonly

A collection of event listeners.

events

Events Event

readonly

A collection of events.

gradientAndMeshResolution

Number (range 0 - 1200)

read/write

The resolution for gradients rasterized as a result of flattening and for drop shadow and feathers when printed or exported. (Range: 0 to 1200) Note: Resolutions higher than 300 ppi increase file size and printing time but generally do not improve the image quality.

id

Number

readonly

The unique ID of the FlattenerPreset.

index

Number

readonly

The index of the FlattenerPreset within its containing object.

isValid

Boolean

readonly

Returns true if the object specifier resolves to valid objects.

label

String

read/write

A property that can be set to any string.

lineArtAndTextResolution

Number (range 1 - 9600)

read/write

The resolution for vector objects rasterized as a result of flattening. (Range: 1 to 9600) For information, see raster vector balance.

name

String

read/write

The name of the FlattenerPreset.

parent

Application

readonly

The parent of the FlattenerPreset (a Application).

properties

Object

read/write

A property that allows setting of several properties at the same time.

rasterVectorBalance

FlattenerLevel

FlattenerLevel.HIGH

FlattenerLevel.LOW

FlattenerLevel.MEDIUM

FlattenerLevel.MEDIUM_HIGH

FlattenerLevel.MEDIUM_LOW

Real(0-100)

read/write

The amount of vector artwork to rasterize during flattening, specified as an enumerator or as a percentage in the range 0 to 100. Can return: FlattenerLevel enumerator or Real (0 - 100).

Method Listing

EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Adds an event listener.

Parameter

Type

Description

eventType

String

The event type.

handler

File

JavaScriptFunction

The event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

FlattenerPreset duplicate ()

Duplicates the FlattenerPreset.

String extractLabel (key:String)

Gets the label value associated with the specified key.

Parameter

Type

Description

key

String

The key.

FlattenerPreset getElements ()

Resolves the object specifier, creating an array of object references.

undefined insertLabel (key:String, value:String)

Sets the label to the value associated with the specified key.

Parameter

Type

Description

key

String

The key.

value

String

The value.

undefined remove ()

Deletes the FlattenerPreset.

Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Removes the event listener.

Parameter

Type

Description

eventType

String

The registered event type.

handler

File

JavaScriptFunction

The registered event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

String toSource ()

Generates a string which, if executed, will return the FlattenerPreset.

String toSpecifier ()

Retrieves the object specifier.

Object of

Event.parent

EventListener.parent

MutationEvent.parent

EPSExportPreference.appliedFlattenerPreset

PDFExportPreference.appliedFlattenerPreset

PDFExportPreset.appliedFlattenerPreset

Return

FlattenerPresets.add()

FlattenerPreset.duplicate()

FlattenerPreset.getElements()

FlattenerPresets.anyItem()

FlattenerPresets.everyItem()

FlattenerPresets.nextItem()

FlattenerPresets.previousItem()

FlattenerPresets.itemByID()

FlattenerPresets.item()

FlattenerPresets.[]()

FlattenerPresets.itemByName()

FlattenerPresets.itemByRange()

FlattenerPresets.firstItem()

FlattenerPresets.lastItem()

FlattenerPresets.middleItem()