A document preset.
document preset properties
| Property | Type | Access | Description |
|---|---|---|---|
| bottom | number or string | r/w | Bottom edge of the object. |
| class | integer | read | The class descriptor type. |
| column count | integer (1 – 216) | r/w | The number of columns. |
| column gutter | number or string (0 – 1440 points) | r/w | The distance between column guides. |
| document bleed bottom offset | number or string | r/w | The bottom document bleed offset. |
| document bleed inside or left offset | number or string | r/w | The left or inside document bleed offset. |
| document bleed outside or right offset | number or string | r/w | The outside or right document bleed offset. |
| document bleed top offset | number or string | r/w | The top document bleed offset. |
| facing pages | boolean | r/w | If true, the document has facing pages. |
| id | integer | read | A unique number identifying the object. |
| index | integer | read | Index of the object within its parent object. |
| label | string | r/w | A label that can be set to any string. |
| left | number or string | r/w | Left edge of the object. |
| name | string | r/w | The name of the object. |
| object reference | object | read | An object reference for this object. |
| page height | number or string | r/w | The height of the page. |
| page orientation | page orientation enumeration | r/w | The orientation of the page. |
| page width | number or string | r/w | The width of the page. |
| pages per document | integer | r/w | The number of pages in a document. |
| parent | object | read | The parent of the object. |
| properties | record | r/w | Property that allows setting of several properties at the same time. |
| right | number or string | r/w | Right edge of the object. |
| slug bottom offset | number or string | r/w | The bottom slug offset. |
| slug inside or left offset | number or string | r/w | The inside or left slug offset. |
| slug right or outside offset | number or string | r/w | The right or outside slug offset. |
| slug top offset | number or string | r/w | The top slug offset. |
| top | number or string | r/w | Top edge of the object. |
document preset methods
| Method | Returns | Description |
|---|---|---|
| delete | Nothing | Delete the object. |
| duplicate | object | Duplicates the object. |
| extract label | string | Gets the content of the label associated with the specified key (name). |
| insert label | Nothing | Sets the content of the label associated with the specified key (name), creating the label if it does not already exist. |