A spread.
Go to Property Listing | Method Listing
placeXML, setContent, move, remove, duplicate, placeAndLink, place, removeOverride, detach, select, createGuides, transform, transformValuesOf, resolve, contentPlace, insertLabel, extractLabel, toSource, getElements, toSpecifier, addEventListener, removeEventListener
Boolean, Buttons, CheckBoxes, ComboBoxes, Document, EPSTexts, EventListeners, Events, FlattenerPreference, FormFields, Graphic, GraphicLines, Groups, Guides, ListBoxes, MasterSpread, MultiStateObjects, NothingEnum, Number, Object, Ovals, PageItem, PageItems, PageTransitionDirectionOptions, PageTransitionDurationOptions, PageTransitionTypeOptions, Pages, Polygons, Preferences, RadioButtons, Rectangles, SignatureFields, SplineItems, SpreadFlattenerLevel, String, TextBoxes, TextFrames, TimingSetting,
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
allGraphics |
readonly |
Lists all graphics contained by the Spread. |
|
|
allPageItems |
readonly |
Lists all page items contained by the Spread. |
|
|
allowPageShuffle |
read/write |
If true, guarantees that when pages are added to a spread it will contain a maximum of two pages. If false, allows pages to be added or moved into existing spreads. For override information, see preserve layout when shuffling. |
|
|
appliedMaster |
NothingEnum.NOTHING |
read/write |
The master spread applied to the Spread. Can also accept: NothingEnum enumerator. |
|
buttons |
readonly |
A collection of buttons. |
|
|
checkBoxes |
readonly |
A collection of checkboxes. |
|
|
comboBoxes |
readonly |
A collection of comboboxes. |
|
|
epstexts |
readonly |
EPSTexts |
|
|
eventListeners |
readonly |
A collection of event listeners. |
|
|
events |
readonly |
A collection of events. |
|
|
flattenerOverride |
SpreadFlattenerLevel.DEFAULT_VALUE SpreadFlattenerLevel.NONE SpreadFlattenerLevel.CUSTOM |
read/write |
The transparency flattener preferences override for the spread. |
|
flattenerPreferences |
readonly |
Flattener preference settings. |
|
|
formFields |
readonly |
A collection of form fields. |
|
|
graphicLines |
readonly |
A collection of graphic lines. |
|
|
groups |
readonly |
A collection of groups. |
|
|
guides |
readonly |
A collection of guides. |
|
|
id |
readonly |
The unique ID of the Spread. |
|
|
idmlComponentName |
read/write |
The IDML component name of the Spread. |
|
|
index |
readonly |
The index of the Spread within its containing object. |
|
|
isValid |
readonly |
Returns true if the object specifier resolves to valid objects. |
|
|
label |
read/write |
A property that can be set to any string. |
|
|
listBoxes |
readonly |
A collection of listboxes. |
|
|
multiStateObjects |
readonly |
A collection of multi-state objects. |
|
|
name |
read/write |
The name of the Spread; this is an alias to the Spread's label property. |
|
|
ovals |
readonly |
A collection of ellipses. |
|
|
pageItems |
readonly |
The page items collection, which can be used to process all page items in a container (such as a document, page, or group), regardless of type. |
|
|
pageTransitionDirection |
PageTransitionDirectionOptions PageTransitionDirectionOptions.NOT_APPLICABLE PageTransitionDirectionOptions.DOWN PageTransitionDirectionOptions.RIGHT_TO_LEFT PageTransitionDirectionOptions.LEFT_DOWN PageTransitionDirectionOptions.LEFT_UP PageTransitionDirectionOptions.LEFT_TO_RIGHT PageTransitionDirectionOptions.RIGHT_DOWN PageTransitionDirectionOptions.RIGHT_UP PageTransitionDirectionOptions.UP PageTransitionDirectionOptions.IN PageTransitionDirectionOptions.OUT PageTransitionDirectionOptions.HORIZONTAL PageTransitionDirectionOptions.VERTICAL PageTransitionDirectionOptions.HORIZONTAL_IN PageTransitionDirectionOptions.HORIZONTAL_OUT PageTransitionDirectionOptions.VERTICAL_IN PageTransitionDirectionOptions.VERTICAL_OUT |
read/write |
The direction of the page transition. |
|
pageTransitionDuration |
PageTransitionDurationOptions.FAST PageTransitionDurationOptions.MEDIUM PageTransitionDurationOptions.SLOW |
read/write |
The duration of the page transition. |
|
pageTransitionType |
PageTransitionTypeOptions.NONE PageTransitionTypeOptions.BLINDS_TRANSITION PageTransitionTypeOptions.BOX_TRANSITION PageTransitionTypeOptions.COMB_TRANSITION PageTransitionTypeOptions.COVER_TRANSITION PageTransitionTypeOptions.DISSOLVE_TRANSITION PageTransitionTypeOptions.FADE_TRANSITION PageTransitionTypeOptions.PAGE_TURN_TRANSITION PageTransitionTypeOptions.PUSH_TRANSITION PageTransitionTypeOptions.SPLIT_TRANSITION PageTransitionTypeOptions.UNCOVER_TRANSITION PageTransitionTypeOptions.WIPE_TRANSITION PageTransitionTypeOptions.ZOOM_IN_TRANSITION PageTransitionTypeOptions.ZOOM_OUT_TRANSITION |
read/write |
The type of page transition. |
|
pages |
readonly |
A collection of pages. |
|
|
parent |
readonly |
The parent of the Spread (a Document). |
|
|
polygons |
readonly |
A collection of polygons. |
|
|
preferences |
readonly |
A collection of preferences objects. |
|
|
properties |
read/write |
A property that allows setting of several properties at the same time. |
|
|
radioButtons |
readonly |
A collection of radio buttons. |
|
|
rectangles |
readonly |
A collection of rectangles. |
|
|
showMasterItems |
read/write |
If true, displays master page items on document pages in the spread. |
|
|
signatureFields |
readonly |
A collection of signature fields. |
|
|
splineItems |
readonly |
The spline items collection. |
|
|
textBoxes |
readonly |
A collection of text boxes. |
|
|
textFrames |
readonly |
A collection of text frames. |
|
|
timingSettings |
readonly |
The object timing settings. |
EventListener addEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Adds an event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The event type. |
|
|
handler |
Varies |
The event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
Varies contentPlace (pageItems:Array of PageItem, [linkPageItems:Boolean=Boolean], [linkStories:Boolean=Boolean], [mapStyles:Boolean=Boolean], placePoint:Array of Number String, destinationLayer:Layer, [showingOptions:Boolean=Boolean])
Duplicate an object and place it into the target.
|
Parameter |
Type |
Description |
|---|---|---|
|
pageItems |
One or more page items to place or load |
|
|
linkPageItems |
Whether to link pageItems in content placer (if true it will override link stories value) (Optional) (default: false) |
|
|
linkStories |
Whether to link stories in content placer (only applicable for single story, pageItem links will also be created in case of more than one item) (Optional) (default: false) |
|
|
mapStyles |
Whether to map styles in content placer (Optional) (default: false) |
|
|
placePoint |
The point at which to place (Optional) |
|
|
destinationLayer |
The layer on which to place (Optional) |
|
|
showingOptions |
Whether to display the link options dialog (Optional) (default: false) |
undefined createGuides ([numberOfRows:Number=Number], [numberOfColumns:Number=Number], [rowGutter:Number String], [columnGutter:Number String], guideColor:Varies, [fitMargins:Boolean=Boolean], [removeExisting:Boolean=Boolean], layer:Layer)
Creates multiple guides on all pages of the spread.
|
Parameter |
Type |
Description |
|---|---|---|
|
numberOfRows |
Number (range 0 - 40) |
The number of rows to create on each page. (Optional) (default: 0) |
|
numberOfColumns |
Number (range 0 - 40) |
The number of columns to create on each page. (Optional) (default: 0) |
|
rowGutter |
The height of the gutter between rows. (Optional) |
|
|
columnGutter |
The width of the gutter between columns. (Optional) |
|
|
guideColor |
Varies |
The color to make the guides, specified either as an array of three doubles, each in the range 0 to 255 and representing R, G, and B values, or as a UI color. Can accept: Array of 3 Reals (0 - 255) or UIColors enumerator. (Optional) |
|
fitMargins |
If true, the row height and column width are calculated based on the space within the page margins. If false, row height and column width are calculated based on the full page. (Optional) (default: false) |
|
|
removeExisting |
If true, removes existing guides when creating new ones. (Optional) (default: false) |
|
|
layer |
The layer on which to create the guides. (Optional) |
undefined detach ()
Detaches an overridden master page item from the master page.
Varies duplicate ([to:LocationOptions=LocationOptions], reference:Varies)
Duplicates the spread.
|
Parameter |
Type |
Description |
|---|---|---|
|
to |
LocationOptions.BEFORE LocationOptions.AFTER LocationOptions.AT_END LocationOptions.AT_BEGINNING LocationOptions.UNKNOWN |
The location of the spread relative to the reference object or within the document. (Optional) (default: LocationOptions.AT_END) |
|
reference |
Varies |
The reference object. Note: Required only when the to parameter specifies before or after. Can accept: Spread, Document or MasterSpread. (Optional) |
String extractLabel (key:String)
Gets the label value associated with the specified key.
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
The key. |
Spread getElements ()
Resolves the object specifier, creating an array of object references.
undefined insertLabel (key:String, value:String)
Sets the label to the value associated with the specified key.
Spread move ([to:LocationOptions=LocationOptions], reference:Varies)
Moves the spread.
|
Parameter |
Type |
Description |
|---|---|---|
|
to |
LocationOptions.BEFORE LocationOptions.AFTER LocationOptions.AT_END LocationOptions.AT_BEGINNING LocationOptions.UNKNOWN |
The location of the spread relative to the reference object or within the document. (Optional) (default: LocationOptions.AT_END) |
|
reference |
Varies |
The reference object. Note: Required when the to parameter specifies before or after. Can accept: Spread, Page or Document. (Optional) |
Varies place (fileName:File, placePoint:Array of Number String, destinationLayer:Layer, [showingOptions:Boolean=Boolean], [autoflowing:Boolean=Boolean], withProperties:Object)
Places the file.
|
Parameter |
Type |
Description |
|---|---|---|
|
fileName |
The file to place |
|
|
placePoint |
The point at which to place (Optional) |
|
|
destinationLayer |
The layer on which to place (Optional) |
|
|
showingOptions |
Whether to display the import options dialog (Optional) (default: false) |
|
|
autoflowing |
Whether to autoflow placed text (Optional) (default: false) |
|
|
withProperties |
Initial values for properties of the placed object(s) (Optional) |
Story placeAndLink (parentStory:Story, placePoint:Array of Number String, destinationLayer:Layer, [showingOptions:Boolean=Boolean])
Deprecated: Use contentPlace method. Original Description: Create a linked story and place it into the target.
|
Parameter |
Type |
Description |
|---|---|---|
|
parentStory |
The story to place and link from. |
|
|
placePoint |
The point at which to place (Optional) |
|
|
destinationLayer |
The layer on which to place (Optional) |
|
|
showingOptions |
Whether to display the link options dialog (Optional) (default: false) |
PageItem placeXML (using:XMLElement, placePoint:Array of Number String, [autoflowing:Boolean=Boolean])
Places the XML element onto a page. If the place point is above an existing page item, place the XML element into the page item.
|
Parameter |
Type |
Description |
|---|---|---|
|
using |
The XML element to place. |
|
|
placePoint |
The point at which to place the object, specified in the format [x, y]. |
|
|
autoflowing |
If true, autoflows placed text. (Optional) (default: false) |
undefined remove ()
Deletes the Spread.
Boolean removeEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Removes the event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The registered event type. |
|
|
handler |
Varies |
The registered event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
undefined removeOverride ()
Removes the override from a previously overridden master page item.
Varies resolve (location:Varies, in:CoordinateSpaces, [consideringRulerUnits:Boolean=Boolean])
Get the coordinates of the given location in the specified coordinate system.
|
Parameter |
Type |
Description |
|---|---|---|
|
location |
Varies |
The location requested. Can accept: Array of 2 Reals, AnchorPoint enumerator or Array of Arrays of 2 Reals, CoordinateSpaces enumerators, AnchorPoint enumerators, BoundingBoxLimits enumerators or Long Integers. |
|
in |
CoordinateSpaces.PASTEBOARD_COORDINATES CoordinateSpaces.PARENT_COORDINATES CoordinateSpaces.INNER_COORDINATES CoordinateSpaces.PAGE_COORDINATES CoordinateSpaces.SPREAD_COORDINATES |
The coordinate space to use. |
|
consideringRulerUnits |
If true then a ruler location is interpreted using ruler units rather than points. The default value is false. This parameter has no effect unless the reference point is specified relative to a page. (Optional) (default: false) |
undefined select ([existingSelection:SelectionOptions=SelectionOptions])
Selects the object.
|
Parameter |
Type |
Description |
|---|---|---|
|
existingSelection |
SelectionOptions.ADD_TO SelectionOptions.REMOVE_FROM SelectionOptions.REPLACE_WITH SelectionOptions.SET_KEY |
The selection status of the Spread in relation to previously selected objects. (Optional) (default: SelectionOptions.REPLACE_WITH) |
PageItem setContent (using:String, relativeBasePath:String)
Replaces the content of XML element with content imported from a file.
|
Parameter |
Type |
Description |
|---|---|---|
|
using |
The file path to the import file. |
|
|
relativeBasePath |
Base path used to resolve relative paths. (Optional) |
String toSource ()
Generates a string which, if executed, will return the Spread.
String toSpecifier ()
Retrieves the object specifier.
undefined transform (in:CoordinateSpaces, from:Varies, withMatrix:Varies, replacingCurrent:Varies, [consideringRulerUnits:Boolean=Boolean])
Transform the page item.
|
Parameter |
Type |
Description |
|---|---|---|
|
in |
CoordinateSpaces.PASTEBOARD_COORDINATES CoordinateSpaces.PARENT_COORDINATES CoordinateSpaces.INNER_COORDINATES CoordinateSpaces.PAGE_COORDINATES CoordinateSpaces.SPREAD_COORDINATES |
The coordinate space to use |
|
from |
Varies |
The temporary origin during the transformation. Can accept: Array of 2 Reals, AnchorPoint enumerator or Array of Arrays of 2 Reals, CoordinateSpaces enumerators, AnchorPoint enumerators, BoundingBoxLimits enumerators or Long Integers. |
|
withMatrix |
Varies |
Transform matrix. Can accept: Array of 6 Reals or TransformationMatrix. |
|
replacingCurrent |
Varies |
Transform components to consider; providing this optional parameter causes the target's existing transform components to be replaced with new values. Without this parameter, the given matrix is concatenated onto the target's existing transform combining the effect of the two. Can accept: MatrixContent enumerator, Array of MatrixContent enumerators or Long Integer. (Optional) |
|
consideringRulerUnits |
If true then a ruler based origin is interpreted using ruler units rather than points. The default value is false. This parameter has no effect unless the reference point is specified relative to a page. (Optional) (default: false) |
TransformationMatrix transformValuesOf (in:CoordinateSpaces)
Get the transformation values of the page item.
|
Parameter |
Type |
Description |
|---|---|---|
|
in |
CoordinateSpaces.PASTEBOARD_COORDINATES CoordinateSpaces.PARENT_COORDINATES CoordinateSpaces.INNER_COORDINATES CoordinateSpaces.PAGE_COORDINATES CoordinateSpaces.SPREAD_COORDINATES |
The coordinate space to use |
LayoutWindow.activeSpread
Button.parent
CheckBox.parent
ComboBox.parent
EPSText.parent
Event.parent
EventListener.parent
FlattenerPreference.parent
FormField.parent
GraphicLine.parent
Group.parent
Guide.parent
ListBox.parent
MultiStateObject.parent
MutationEvent.parent
Oval.parent
Page.parent
PageItem.parent
Polygon.parent
Preference.parent
RadioButton.parent
Rectangle.parent
SignatureField.parent
SplineItem.parent
TextBox.parent
TextFrame.parent
TimingSetting.parent