A pumpkin.
pumpkin properties
| Property | Type | Access | Description |
|---|---|---|---|
| absolute horizontal scale | fixed | r/w | The horizontal scale of the page item relative to its containing page item. |
| absolute rotation angle | fixed | r/w | The rotation angle of the page item relative to its containing page item. |
| absolute shear angle | fixed | r/w | The shear angle of the page item relative to its containing page item. |
| absolute vertical scale | fixed | r/w | The vertical scale of the page item relative to its containing page item. |
| all graphics | list of graphics | read | All graphics. |
| all page items | list of page items | read | All page items. |
| anchored object settings | anchored object setting | read | Anchored object settings. |
| applied object style | object style | r/w | The object style applied to this object. |
| associated XML element | XML item | read | Returns the associated XML element. |
| blend mode | blend mode enumeration | r/w | The blend mode used to combine the object’s color with the background. |
| class | integer | read | The class descriptor type. |
| corner effect | corner effects enumeration | r/w | The type of corner effect on the object. |
| corner radius | fixed | r/w | The radius of the corner. |
| end cap | end cap enumeration | r/w | The appearance of both ends of an open path. |
| end join | end join enumeration | r/w | The appearance of the stroke at corner points. |
| feather corner type | feather corner type enumeration | r/w | The type of feathering to apply. |
| feather mode | feather mode enumeration | r/w | The feather mode. |
| feather noise | fixed (0 – 100) | r/w | The amount of noise to apply to the feather. |
| feather width | number or string (0 – 1000 points) | r/w | The width of the feathering. |
| fill color | swatch, string | r/w | The fill color of the object. |
| fill tint | fixed | r/w | The object’s fill tint percentage (-1 indicates no override). |
| gap color | swatch | r/w | Gap color for the page item. |
| gap tint | fixed | r/w | Gap tint for the page item. |
| geometric bounds | list of 4 numbers or strings | r/w | The bounds of the page item excluding the stroke width, in the format (top, left, bottom, right). |
| gradient fill angle | fixed | r/w | Angle of a linear gradient on the fill. |
| gradient fill length | number or string | r/w | Length of ramp for a linear gradient or radius of a radial gradient on the fill. |
| gradient fill start | list of 2 numbers or strings | r/w | Center point for a radial gradient or starting point for a linear gradient on the fill. |
| gradient stroke angle | fixed | r/w | Angle of a linear gradient on the stroke. |
| gradient stroke length | number or string | r/w | Length of ramp for a linear gradient or radius of a radial gradient on the stroke. |
| gradient stroke start | list of 2 numbers or strings | r/w | Center point for a radial gradient or starting point for a linear gradient on the stroke. |
| horizontal scale | fixed | r/w | The scale percentage in the horizontal direction. |
| id | integer | read | The object’s unique id. |
| index | integer | read | Index of the object within its parent object. |
| isolate blending | boolean | r/w | Indicates whether the object should blend in isolation. |
| item layer | layer | r/w | The layer the object is on. |
| knockout group | boolean | r/w | Indicates whether the object is a knockout group. |
| label | string | r/w | A label that can be set to any string. |
| left line end | arrow head enumeration | r/w | A shape, such as an arrowhead, on the left end of an open path. |
| local display setting | display setting options enumeration | r/w | The display settings for this page item. |
| locked | boolean | r/w | Whether the object is locked. |
| miter limit | fixed | r/w | When a corner point switches from a mitered (pointed) join to a beveled (squared-off) join. |
| nonprinting | boolean | r/w | Whether the page item is non-printing. |
| object reference | object | read | An object reference for this object. |
| opacity | fixed (0 – 100) | r/w | The opacity of the object. |
| overprint fill | boolean | r/w | Whether to overprint the fill. |
| overprint gap | boolean | r/w | Whether to overprint the gap. |
| overprint stroke | boolean | r/w | Whether to overprint the stroke. |
| overridden | boolean | read | True if this object originated on a master spread, was overridden, and is still linked to the object on the master. |
| overridden master page item | page item, guide, graphic, movie, sound | read | The overridden master page item. |
| parent | object | read | The object’s parent. |
| properties | record | r/w | Property that allows setting of several properties at the same time. |
| right line end | arrow head enumeration | r/w | A shape, such as an arrowhead, on the right end of an open path. |
| rotation angle | fixed | r/w | Angle of rotation. |
| shadow blend mode | blend mode enumeration | r/w | The blend mode to use for drawing the shadow. |
| shadow blur radius | number or string (0 – 144 points) | r/w | The radius of the blur to apply to the shadow. |
| shadow color | swatch | r/w | The color to apply to the shadow. |
| shadow mode | shadow mode enumeration | r/w | The shadow mode. |
| shadow noise | fixed (0 – 100) | r/w | The amount of noise to apply to the shadow. |
| shadow opacity | fixed (0 – 100) | r/w | The opacity of the shadow. |
| shadow spread | fixed (0 – 100) | r/w | The amount to spread the shadow prior to blurring. |
| shadow x offset | number or string (-1000 – 1000 points) | r/w | The horizontal offset of the shadow. |
| shadow y offset | number or string (-1000 – 1000 points) | r/w | The vertical offset of the shadow. |
| shear angle | fixed | r/w | The shear angle of the page item relative to the spread. |
| stroke alignment | stroke alignment enumeration | r/w | The stroke alignment for the page item. |
| stroke color | swatch, string | r/w | The stroke color of the object. |
| stroke corner adjustment | stroke corner adjustment enumeration | r/w | The adjustment to add to the corners of a dashed line. |
| stroke dash and gap | list of numbers or strings | r/w | The dash and gap settings of a dashed line. A list of up to 6 values. |
| stroke tint | fixed | r/w | The object’s stroke tint percentage (-1 indicates no override). |
| stroke type | stroke style | r/w | The stroke type. |
| stroke weight | number or string | r/w | The weight to apply to the stroke of the object. |
| text wrap preferences | text wrap preference | read | The text wrap preferences. |
| vertical scale | fixed | r/w | The scale percentage in the vertical direction. |
| visible bounds | list of 4 numbers or strings | r/w | The bounds of the page item including the stroke width, in the format (top, left, bottom, right). |
pumpkin methods
| Method | Returns | Description |
|---|---|---|
| add path | page item | Make path from a list of pageitems by union with the other shape area. |
| bring forward | Nothing | Bring object forward. |
| bring to front | Nothing | Bring object to the top. |
| delete | Nothing | Delete the object. |
| detach | Nothing | Detaches an overridden page item from the master page item. |
| duplicate | page item | Duplicate the object with an optional x an y offset value. |
| exclude overlap path | page item | Make path from a list of pageitems by excluding overlapped area. |
| export | Nothing | Export the object to file. |
| extract label | string | Get the label value associated with the given key. |
| fit | Nothing | Fit content within a graphic frame. |
| flip item | Nothing | Flip item about given axis. |
| insert label | Nothing | Set the label associated with the given key. |
| intersect path | page item | Make path from a list of pageitems by intersecting with the other shape area. |
| make compound path | page item | Make compound path from a list of pageitems. |
| markup | Nothing | Markup layout content with XML preserving the existing content. |
| minus back | page item | Make path from a list of pageitems by reverse subtracting shape area. |
| move | Nothing | Move Page Item to a new location. One of the ‘To’ or ‘By’ parameters is required. |
| override | page item, guide, graphic, movie or sound | Overrides an item from the master page and places it on the page. |
| place | page item, graphic, movie, sound, story or text | Place a file. |
| place XML | Nothing | Places XML content from the specified element replacing the existing content. |
| release compound path | list of page items | Release compound path. |
| remove override | Nothing | Removes a locally overridden master page item. |
| reset scaling | Nothing | Reset an item to 100% scaling, resizes to retain same appearance. |
| resize | Nothing | Resize the page item. You must specify either horizontal scale or vertical scale or both. |
| rotate | Nothing | Rotate the page item. |
| select | Nothing | Select this object. |
| send backward | Nothing | Send object backward. |
| send to back | Nothing | Send object to the back. |
| shear | Nothing | Shear the page item. |
| store | asset | Store a page item in a library. |
| subtract path | page item | Make path from a list of pageitems by subtracting from shape area. |
| transform again | list of strings | Transform the item using the last transformation. |
| transform again individually | list of strings | Transform the item using the last transformation (applied individually). |
| transform sequence again | list of strings | Transform the item using the last set of transformations. |
| transform sequence again individually | list of strings | Transform the item using the last set of transformations (applied individually). |