FlattenerPreference

Transparency flattener preferences.

Methods:

addEventListener, getElements, removeEventListener, toSource, toSpecifier

Objects:

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

Hierarchy:

Superclass: Preference

Class: FlattenerPreference

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.

isValid

Boolean

readonly

Returns true if the object specifier resolves to valid objects.

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.

parent

Spread

readonly

The parent of the FlattenerPreference (a Spread).

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)

FlattenerPreference getElements ()

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

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 FlattenerPreference.

String toSpecifier ()

Retrieves the object specifier.

Object of

Spread.flattenerPreferences

Event.parent

EventListener.parent

MutationEvent.parent

Return

FlattenerPreference.getElements()