TrapPreset
A trapping preset.
TrapPreset Properties
| Property |
Type |
Access |
Description |
| blackColorThreshold |
Real (0 – 100) |
r/w |
Black color threshold as a percentage. |
| blackDensity |
Real (0 – 10) |
r/w |
Black density. |
| blackWidth |
Unit (0 – 8 points) |
r/w |
Black width as Unit (Double or String) (0 – 8 points). |
| colorReduction |
Real (0 – 100) |
r/w |
Color reduction threshold as a percentage. |
| defaultTrapWidth |
Unit (0 – 8 points) |
r/w |
Default width as Unit (Double or String) (0 – 8 points). |
| id |
Long |
read |
A unique number identifying the object. |
| imagePlacement |
TrapImagePlacementTypes enumeration |
r/w |
The trap preset’s image placement. |
| imagesToImages |
Boolean |
r/w |
If true, trap images to images. |
| index |
Long |
read |
Index of the object within its parent object. |
| internalImages |
Boolean |
r/w |
If true, trap images internally. |
| label |
String |
r/w |
A label that can be set to any string. |
| name |
String |
r/w |
The name of the object. |
| objectsToImages |
Boolean |
r/w |
If true, trap objects to images. |
| oneBitImages |
Boolean |
r/w |
If trye, apply trapping to one-bit images. |
| parent |
Object |
read |
The parent of the object. |
| properties |
An array of property names and values |
r/w |
Property that allows setting of several properties at the same time. |
| slidingTrapThreshold |
Real (0 – 100) |
r/w |
Sliding trap threshold as a percentage. |
| stepThreshold |
Real (1 – 100) |
r/w |
Step threshold as a percentage. |
| trapEnd |
TrapEndTypes enumeration |
r/w |
The trap preset’s end type. |
| trapJoin |
EndJoin enumeration |
r/w |
The trap preset’s join type. |
TrapPreset Methods
| Method |
Returns |
Description |
| duplicate |
Object |
Duplicates the object. |
| extractLabel |
String |
Gets the content of the label associated with the specified key (name). |
| getElements |
Array of Objects |
Resolve the object specifier. |
| insertLabel |
Nothing |
Sets the content of the label associated with the specified key (name), creating the label if it does not already exist. |
| remove |
Nothing |
Delete trap preset. |
| toSource |
String |
Generate JavaScript source that, if executed, will return the specified objects. |
| toSpecifier |
String |
Retrieve the object specifier. |