TrapPreset

A trap preset.

Methods:

duplicate, extractLabel, insertLabel, remove

Objects:

Boolean, EndJoin, Number, Object, String, TrapEndTypes, TrapImagePlacementTypes

Property Listing

Property

Type

Access

Description

blackColorThreshold

Number

read/write

The black color threshold in percentage between 0% and 100%

blackDensity

Number

read/write

The black tint percentage below which to print as solid areas. (Range: 0.001 to 12.0)

blackWidth

Number

read/write

The trap preset's width to use for black objects or image areas. (Range depends on unit. For points: 0.0 to 8.0; picas: 0p0 to 0p8; inches: 0 to 0.1111; mm: 0 to 2.822; cm: 0 to .2822; ciceros: 0c0 to 0c7.507)

colorReduction

Number

read/write

Trap preset's color reduction threshold in percentage between 0% and 100%

defaultTrapWidth

Number

read/write

The trap preset's default width for trapping all colors except those involving solid black. (Range depends on unit. For points: 0.0 to 8.0; picas: 0p0 to 0p8; inches: 0 to 0.1111; mm: 0 to 2.822; cm: 0 to .2822; ciceros: 0c0 to 0c7.507)

id

Number

readonly

The unique ID of the TrapPreset.

imagePlacement

TrapImagePlacementTypes

TrapImagePlacementTypes.CENTER_EDGES

TrapImagePlacementTypes.CHOKE

TrapImagePlacementTypes.IMAGES_OVER_SPREAD

TrapImagePlacementTypes.IMAGE_NEUTRAL_DENSITY

read/write

The trap placement between vector objects and bitmap images.

imagesToImages

Boolean

read/write

If true, turns on trapping along the boundary of overlapping or abutting bitmap images.

index

Number

readonly

The index of the TrapPreset within its containing object.

internalImages

Boolean

read/write

If true, turns on trapping among colors within individual bitmap images.

label

String

read/write

A property that can be set to any string.

name

String

read/write

The name of the TrapPreset.

objectsToImages

Boolean

read/write

If true, ensures that vector objects overlap bitmap images.

oneBitImages

Boolean

read/write

If true, ensures that one-bit images trap to abutting objects.

parent

Application

Document

readonly

The parent of the TrapPreset (a Application or Document).

properties

Object

read/write

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

slidingTrapThreshold

Number

read/write

The threshold at which the trapping engine straddles the centerline of the color boundary. Trap preset's sliding trap threshold in percentage between 0% and 100%

stepThreshold

Number

read/write

The step threshold in percentage between 1% and 100%

trapEnd

TrapEndTypes

TrapEndTypes.MITER_TRAP_ENDS

TrapEndTypes.OVERLAP_TRAP_ENDS

read/write

The shape to use at the intersection of three-way traps.

trapJoin

EndJoin

EndJoin.BEVEL_END_JOIN

EndJoin.MITER_END_JOIN

EndJoin.ROUND_END_JOIN

read/write

The join type of the trap preset.

Method Listing

TrapPreset duplicate ()

Duplicates the TrapPreset.

String extractLabel (key:String)

Gets the label value associated with the specified key.

Parameter

Type

Description

key

String

The key.

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 (replacingWith:TrapPreset)

Deletes the trap preset.

Parameter

Type

Description

replacingWith

TrapPreset

The trap preset to apply in place of the deleted preset.

Object of

Page.appliedTrapPreset

Return

TrapPresets.add()

TrapPreset.duplicate()