Static Properties
| Name | Description |
|---|---|
| AFTER_ACTIVATE = "afterActivate" | string Dispatched after the Document becomes active. This event bubbles. This event is not cancelable. |
| AFTER_EXPORT = "afterExport" | string Dispatched after a Document is exported. This event bubbles. This event is not cancelable. |
| AFTER_IMPORT = "afterImport" | string Dispatched after importing a file into a Document. This event bubbles. This event is not cancelable. |
| AFTER_LINKS_CHANGED = "afterLinksChanged" | string Dispatched after one or more links in the Document have been added, deleted, or modified. This event bubbles. This event is not cancelable. |
| AFTER_NEW = "afterNew" | string Dispatched after a Document is created. This event bubbles. This event is not cancelable. |
| AFTER_OPEN = "afterOpen" | string Dispatched after a Document is opened. This event bubbles. This event is not cancelable. |
| AFTER_PRINT = "afterPrint" | string Dispatched after a Document is printed. This event bubbles. This event is not cancelable. |
| AFTER_REVERT = "afterRevert" | string Dispatched after a Document is reverted. This event bubbles. This event is not cancelable. |
| AFTER_SAVE = "afterSave" | string Dispatched after a Document is saved. This event bubbles. This event is not cancelable. |
| AFTER_SAVE_AS = "afterSaveAs" | string Dispatched after a Document is saved under a new name. This event bubbles. This event is not cancelable. |
| AFTER_SAVE_A_COPY = "afterSaveACopy" | string Dispatched after a copy of a Document is saved. This event bubbles. This event is not cancelable. |
| BEFORE_CLOSE = "beforeClose" | string Dispatched before a Document is closed. This event bubbles. This event is not cancelable. |
| BEFORE_DEACTIVATE = "beforeDeactivate" | string Dispatched before the Document becomes inactive. This event bubbles. This event is not cancelable. |
| BEFORE_EXPORT = "beforeExport" | string Dispatched before a Document is exported. This event bubbles. This event is cancelable. |
| BEFORE_IMPORT = "beforeImport" | string Dispatched before importing a file into a Document. This event bubbles. This event is cancelable. |
| BEFORE_PRINT = "beforePrint" | string Dispatched before a Document is printed. This event bubbles. This event is cancelable. |
| BEFORE_REVERT = "beforeRevert" | string Dispatched before a Document is reverted. This event bubbles. This event is cancelable. |
| BEFORE_SAVE = "beforeSave" | string Dispatched before a Document is saved. This event bubbles. This event is cancelable. |
| BEFORE_SAVE_AS = "beforeSaveAs" | string Dispatched before a Document is saved under a new name. This event bubbles. This event is cancelable. |
| BEFORE_SAVE_A_COPY = "beforeSaveACopy" | string Dispatched before a copy of a Document is saved. This event bubbles. This event is cancelable. |
| FAILED_EXPORT = "failedExport" | string Dispatched after a Document export is canceled or fails. This event bubbles. This event is not cancelable. |
Instance Properties
| Name | Description | Access |
|---|---|---|
| accurateLABSpots | bool If true, uses LAB alternates for spot colors when available. | read-write |
| activeLayer | Layer The active layer. Can also accept: String. | read-write |
| activeProcess | PreflightProcess The active preflight process for this document. | read-only |
| afterBlendingIntent | RenderingIntent The rendering intent for colors that result from transparency interactions on the page after blending. | read-write |
| allCellStyles | CellStyle All Cell styles | read-only |
| allCharacterStyles | CharacterStyle Lists all character styles (regardless of their group). | read-only |
| allGraphics | Graphic Lists all graphics contained by the Document. | read-only |
| allObjectStyles | ObjectStyle All object styles contained by the Document. | read-only |
| allPageItems | PageItem Lists all page items contained by the Document. | read-only |
| allParagraphStyles | ParagraphStyle Lists all paragraph styles (regardless of their group). | read-only |
| allTableStyles | TableStyle All Table styles | read-only |
| anchoredObjectDefaults | AnchoredObjectDefault Anchored object default settings. | read-only |
| anchoredObjectSettings | AnchoredObjectSetting Anchored object settings. | read-only |
| articles | Articles A collection of articles. | read-only |
| assignments | Assignments A collection of assignments. | read-only |
| associatedXMLElement | XMLItem The XML element associated with the Document. | read-only |
| baselineFrameGridOptions | BaselineFrameGridOption Baseline frame grid option settings. | read-only |
| bookmarks | Bookmarks A collection of bookmarks. | read-only |
| buttonPreferences | ButtonPreference Button preference settings. | read-only |
| buttons | Buttons A collection of buttons. | read-only |
| cellStyleGroups | CellStyleGroups A collection of cell style groups. | read-only |
| cellStyleMappings | CellStyleMappings A collection of cell style mappings. | read-only |
| cellStyles | CellStyles A collection of cell styles. | read-only |
| chapterNumberPreferences | ChapterNumberPreference Chapter numbering preferences. | read-only |
| charStyleMappings | CharStyleMappings A collection of char style mappings. | read-only |
| characterStyleGroups | CharacterStyleGroups A collection of character style groups. | read-only |
| characterStyles | CharacterStyles A collection of character styles. | read-only |
| checkBoxes | CheckBoxes A collection of checkboxes. | read-only |
| cjkGridPreferences | CjkGridPreference CJK grid preference settings. | read-only |
| cmykPolicy | ColorSettingsPolicy The policy for handling colors in a CMYK color model, including reading and embedding color profiles, mismatches between embedded color profiles and the working space, and moving colors from one document to another. | read-write |
| cmykProfile | string The current CMYK profile. | read-write |
| cmykProfileList | string A list of valid CMYK profiles. | read-only |
| colorGroups | ColorGroups A collection of color groups. | read-only |
| colors | Colors A collection of colors. | read-only |
| comboBoxes | ComboBoxes A collection of comboboxes. | read-only |
| compositeFonts | CompositeFonts A collection of composite fonts. | read-only |
| conditionSets | ConditionSets A collection of condition sets for conditional text. | read-only |
| conditionalTextPreferences | ConditionalTextPreference Conditional text preferences. | read-only |
| conditions | Conditions A collection of conditions for conditional text. | read-only |
| converted | bool If true, the Document was converted. | read-only |
| crossReferenceFormats | CrossReferenceFormats A collection of cross reference formats. | read-only |
| crossReferenceSources | CrossReferenceSources A collection of cross reference text sources. | read-only |
| dashedStrokeStyles | DashedStrokeStyles A collection of dashed stroke styles. | read-only |
| dataMergeImagePlaceholders | DataMergeImagePlaceholders A collection of data merge image placeholders. | read-only |
| dataMergeOptions | DataMergeOption The data merge option properties that define the data merge. | read-only |
| dataMergeProperties | DataMerge Data merge properties that define data merge fields and preferences. | read-only |
| dataMergeQrcodePlaceholders | DataMergeQrcodePlaceholders A collection of data merge QR code placeholders. | read-only |
| dataMergeTextPlaceholders | DataMergeTextPlaceholders A collection of data merge text placeholders. | read-only |
| defaultImageIntent | RenderingIntent The rendering intent for bitmap images. | read-write |
| dictionaryPreferences | DictionaryPreference User dictionary preference settings. | read-only |
| documentPreferences | DocumentPreference Document preference settings. | read-only |
| dottedStrokeStyles | DottedStrokeStyles A collection of dotted stroke styles. | read-only |
| dtds | DTDs A collection of DTDs. | read-only |
| editingState | EditingState The Version Cue editing state of the file. | read-only |
| endnoteOptions | EndnoteOption Endnote option settings. | read-only |
| endnoteTextFrames | EndnoteTextFrames A collection of endnote text frames. | read-only |
| epstexts | EPSTexts EPSTexts | read-only |
| epubExportPreferences | EPubExportPreference EPub export preference settings. | read-only |
| epubFixedLayoutExportPreferences | EPubFixedLayoutExportPreference EPub fixed layout export preference settings. | read-only |
| eventListeners | EventListeners A collection of event listeners. | read-only |
| events | Events A collection of events. | read-only |
| exportForWebPreferences | ExportForWebPreference The default export for web preferences. | read-only |
| filePath | File The full path to the file. | read-only |
| fonts | Fonts A collection of fonts. | read-only |
| footnoteOptions | FootnoteOption Footnote option settings. | read-only |
| formFields | FormFields A collection of form fields. | read-only |
| frameFittingOptions | FrameFittingOption The frame fitting option to apply to placed or pasted content. Can be applied to a frame, object style, or document or to the application. | read-only |
| fullName | File The full path to the Document, including the name of the Document. | read-only |
| galleyPreferences | GalleyPreference Galley preference settings. | read-only |
| gradients | Gradients A collection of gradients. | read-only |
| graphicLines | GraphicLines A collection of graphic lines. | read-only |
| gridPreferences | GridPreference Grid preference settings. | read-only |
| groups | Groups A collection of groups. | read-only |
| guidePreferences | GuidePreference Guide preference settings. | read-only |
| guides | Guides A collection of guides. | read-only |
| htmlExportPreferences | HTMLExportPreference HTML export preference settings. | read-only |
| htmlFXLExportPreferences | HTMLFXLExportPreference HTML FXL export preference settings. | read-only |
| hyperlinkExternalPageDestinations | HyperlinkExternalPageDestinations A collection of hyperlink external page destinations. | read-only |
| hyperlinkPageDestinations | HyperlinkPageDestinations A collection of hyperlink page destinations. | read-only |
| hyperlinkPageItemSources | HyperlinkPageItemSources A collection of hyperlink page item sources. | read-only |
| hyperlinkTextDestinations | HyperlinkTextDestinations A collection of hyperlink text destinations. | read-only |
| hyperlinkTextSources | HyperlinkTextSources A collection of hyperlink text sources. | read-only |
| hyperlinkURLDestinations | HyperlinkURLDestinations A collection of hyperlink URL destinations. | read-only |
| hyperlinks | Hyperlinks A collection of hyperlinks. | read-only |
| hyphenationExceptions | HyphenationExceptions A collection of hyphenation exceptions lists. | read-only |
| id | number The unique ID of the Document. | read-only |
| index | number The index of the Document within its containing object. | read-only |
| indexGenerationOptions | IndexOptions The index options properties that define how an index is formatted. | read-only |
| indexes | Indexes A collection of indexes. | read-only |
| indexingSortOptions | IndexingSortOptions A collection of indexing sort options. | read-only |
| inks | Inks A collection of inks. | read-only |
| isValid | bool Returns true if the object specifier resolves to valid objects. | read-only |
| k4Articles | K4Articles K4 Articles | read-only |
| k4DesignName | string K4 Design Name | read-only |
| k4FileVersionIndex | number K4 File Version Index | read-only |
| k4Id | string K4 Server ID | read-only |
| k4Name | string K4 Name | read-only |
| k4ObjectLabel | string K4 Object Label | read-only |
| k4ObjectState | K4ObjectState K4 Object State | read-only |
| k4ObjectType | K4ObjectType K4 Object Type | read-only |
| k4OutputChannelName | string K4 Output Channel Name | read-only |
| k4PublicationId | string K4 Publication ID | read-only |
| k4VariantId | string K4 Variant ID | read-only |
| k4WfChannelId | string K4 Workflow Channel ID | read-only |
| k4WfDefinitionId | string K4 Workflow Definition ID | read-only |
| k4WfName | string K4 Workflow Name | read-only |
| k4WfObjectType | K4WfObjectType K4 Workflow Object Type | read-only |
| k4WfObjectVariantId | string K4 Workflow Object Variant ID | read-only |
| kinsokuTables | KinsokuTables A collection of kinsoku tables. | read-only |
| label | string A property that can be set to any string. | read-write |
| languages | Languages A collection of languages. | read-only |
| layers | Layers A collection of layers. | read-only |
| layoutAdjustmentPreferences | LayoutAdjustmentPreference Layout sdjustment preference settings. | read-only |
| layoutGridData | LayoutGridDataInformation Default properties specific to layout grids. | read-only |
| layoutWindows | LayoutWindows A collection of layout windows. | read-only |
| linkedPageItemOptions | LinkedPageItemOption Linked Page Item options | read-only |
| linkedStoryOptions | LinkedStoryOption Linked story options | read-only |
| links | Links A collection of links. | read-only |
| listBoxes | ListBoxes A collection of listboxes. | read-only |
| marginPreferences | MarginPreference Margin preference settings. | read-only |
| masterSpreads | MasterSpreads A collection of master spreads. | read-only |
| metadataPreferences | MetadataPreference Metadata preference settings. | read-only |
| mixedInkGroups | MixedInkGroups A collection of mixed ink groups. | read-only |
| mixedInks | MixedInks A collection of mixed inks. | read-only |
| modified | bool If true, the Document has been modified since it was last saved. | read-only |
| mojikumiTables | MojikumiTables A collection of mojikumi tables. | read-only |
| mojikumiUIPreferences | MojikumiUiPreference Mojikumi user interface preference settings. | read-only |
| motionPresets | MotionPresets A collection of Motion presets. | read-only |
| multiStateObjects | MultiStateObjects A collection of multi-state objects. | read-only |
| name | string The name of the Document. | read-write |
| namedGrids | NamedGrids A collection of named grids. | read-only |
| numberingLists | NumberingLists A collection of numbered lists. | read-only |
| objectStyleGroups | ObjectStyleGroups A collection of object style groups. | read-only |
| objectStyles | ObjectStyles A collection of object styles. | read-only |
| ovals | Ovals A collection of ellipses. | read-only |
| pageItemDefaults | PageItemDefault The default page item formatting for the Document. | read-only |
| pageItems | PageItems 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. | read-only |
| pages | Pages A collection of pages. | read-only |
| paraStyleMappings | ParaStyleMappings A collection of para style mappings. | read-only |
| paragraphDestinations | ParagraphDestinations A collection of paragraph destinations. | read-only |
| paragraphStyleGroups | ParagraphStyleGroups A collection of paragraph style groups. | read-only |
| paragraphStyles | ParagraphStyles A collection of paragraph styles. | read-only |
| parent | Application The parent of the Document (a Application). | read-only |
| pasteboardPreferences | PasteboardPreference Pasteboard preference settings. | read-only |
| placeGuns | PlaceGun The place gun. | read-only |
| polygons | Polygons A collection of polygons. | read-only |
| preferences | Preferences A collection of preferences objects. | read-only |
| preflightOptions | PreflightOption Preflight option settings. | read-only |
| preflightProfiles | PreflightProfiles A collection of preflight profiles. | read-only |
| printBookletOptions | PrintBookletOption Booklet printing options. | read-only |
| printBookletPrintPreferences | PrintBookletPrintPreference Print booklet preferences. | read-only |
| printPreferences | PrintPreference Print preference settings. | read-only |
| properties | Object A property that allows setting of several properties at the same time. | read-write |
| publishExportPreferences | PublishExportPreference Publish export preference settings. | read-only |
| radioButtons | RadioButtons A collection of radio buttons. | read-only |
| readOnly | bool If true, the Document is read-only. | read-only |
| recovered | bool If true, the Document was recovered. | read-only |
| rectangles | Rectangles A collection of rectangles. | read-only |
| redoHistory | string The names of the items in the redo stack. | read-only |
| redoName | string The name of the action on the top of the redo stack. | read-only |
| rgbPolicy | ColorSettingsPolicy The policy for handling colors in an RGB color model, including reading and embedding color profiles, handling mismatches between embedded color profiles and the working space, and moving colors from one document to another. | read-write |
| rgbProfile | string The current RGB profile. | read-write |
| rgbProfileList | string A list of valid RGB profiles. | read-only |
| saved | bool If true, the Document has been saved since it was created. | read-only |
| sections | Sections A collection of sections. | read-only |
| selectedPageItems | Object The selected page item(s). Can also accept: Object or NothingEnum enumerator. | read-only |
| selection | Object The selected object(s). Can also accept: Object or NothingEnum enumerator. | read-write |
| selectionKeyObject | PageItem The key object of the selection. Can also accept: NothingEnum enumerator. | read-write |
| signatureFields | SignatureFields A collection of signature fields. | read-only |
| solidColorIntent | RenderingIntent The rendering intent for all vector art (areas of solid color) in native objects. | read-write |
| splineItems | SplineItems The spline items collection. | read-only |
| spreads | Spreads A collection of spreads. | read-only |
| stories | Stories A collection of stories. | read-only |
| storyGridData | StoryGridDataInformation Default properties specific to frame grids. | read-only |
| storyPreferences | StoryPreference Story preference settings. | read-only |
| storyWindows | StoryWindows A collection of story windows. | read-only |
| stripedStrokeStyles | StripedStrokeStyles A collection of striped stroke styles. | read-only |
| strokeStyles | StrokeStyles A collection of stroke styles. | read-only |
| swatches | Swatches A collection of swatches. | read-only |
| tableStyleGroups | TableStyleGroups A collection of table style groups. | read-only |
| tableStyleMappings | TableStyleMappings A collection of table style mappings. | read-only |
| tableStyles | TableStyles A collection of table styles. | read-only |
| taggedPDFPreferences | TaggedPDFPreference Tagged PDF preferences. | read-only |
| textBoxes | TextBoxes A collection of text boxes. | read-only |
| textDefaults | TextDefault Text default settings. | read-only |
| textFrameFootnoteOptions | TextFrameFootnoteOptionsObject Text frame footnote options settings. | read-only |
| textFramePreferences | TextFramePreference Text frame preference settings. | read-only |
| textFrames | TextFrames A collection of text frames. | read-only |
| textPreferences | TextPreference Text preference settings. | read-only |
| textVariables | TextVariables A collection of text variables. | read-only |
| textWrapPreferences | TextWrapPreference The text wrap preference properties that define the default formatting for wrapping text around objects. | read-only |
| tints | Tints A collection of tints. | read-only |
| tocStyles | TOCStyles A collection of TOC styles. | read-only |
| transparencyPreferences | TransparencyPreference Transparency preference settings. | read-only |
| trapPresets | TrapPresets A collection of trap presets. | read-only |
| undoHistory | string The names of the items in the undo stack. | read-only |
| undoName | string The name of the action on the top of the undo stack. | read-only |
| unusedSwatches | Swatch The swatches that are not being used. | read-only |
| validationErrors | ValidationErrors A collection of XML validation errors. | read-only |
| versionState | VersionState The Version Cue version state of the file. | read-only |
| viewPreferences | ViewPreference View preference settings. | read-only |
| visible | bool If true, the Document is visible. | read-only |
| watermarkPreferences | WatermarkPreference Watermark preferences | read-only |
| windows | Windows A collection of windows. | read-only |
| xmlComments | XMLComments A collection of XML comments. | read-only |
| xmlElements | XMLElements A collection of XML elements. | read-only |
| xmlExportMaps | XMLExportMaps A collection of XML export maps. | read-only |
| xmlExportPreferences | XMLExportPreference XML export preference settings. | read-only |
| xmlImportMaps | XMLImportMaps A collection of XML import maps. | read-only |
| xmlImportPreferences | XMLImportPreference XML import preference settings. | read-only |
| xmlInstructions | XMLInstructions A collection of XML instructions. | read-only |
| xmlItems | XMLItems A collection of XML items. | read-only |
| xmlPreferences | XMLPreference The XML preference settings. | read-only |
| xmlStories | XmlStories A collection of xml stories. | read-only |
| xmlTags | XMLTags A collection of XML tags. | read-only |
| xmlViewPreferences | XMLViewPreference XML view preference settings. | read-only |
| zeroPoint | Measurement Unit (Number or String)=any The ruler origin, specified as page coordinates in the format [x, y]. | read-write |
Methods
| addEventListener( | eventType, handler [, captures]) |
→ EventListener |
| align( | alignDistributeItems, alignOption [, alignDistributeBounds] [, reference]) |
| asynchronousExportFile( | format, to [, showingOptions] [, using] [, versionComments] [, forceSave]) |
→ BackgroundTask |
| changeGlyph( | [reverseOrder]) |
→ Text |
| changeGrep( | [reverseOrder]) |
→ Text |
| changeObject( | [reverseOrder]) |
→ PageItem |
| changeText( | [reverseOrder]) |
→ Text |
| changeTransliterate( | [reverseOrder]) |
→ Text |
| checkIn( | [versionComments] [, forceSave]) |
| close( | [saving] [, savingIn] [, versionComments] [, forceSave]) |
| colorTransform( | colorValue, sourceColorSpace, destinationColorSpace) |
→ number |
| createAlternateLayout( | spreadItems, name, width, height, createTextStyles, linkTextStories, layoutRule) |
| createEmailQRCode( | [emailAddress] [, subject] [, body], qrCodeSwatch [, withProperties]) |
| createHyperlinkQRCode( | [urlLink], qrCodeSwatch [, withProperties]) |
| createMissingFontObject( | fontFamily, fontStyleName, postscriptName) |
→ Font |
| createPlainTextQRCode( | [plainText], qrCodeSwatch [, withProperties]) |
| createTextMsgQRCode( | [cellNumber] [, textMessage], qrCodeSwatch [, withProperties]) |
| createVCardQRCode( | [firstName] [, lastName] [, jobTitle] [, cellPhone] [, phone] [, email] [, organisation] [, streetAddress] [, city] [, adrState] [, country] [, postalCode] [, website], qrCodeSwatch [, withProperties]) |
| deleteAlternateLayout( | name) |
| distribute( | alignDistributeItems, distributeOption [, alignDistributeBounds] [, useDistributeMeasurement] [, absoluteDistributeMeasurement] [, reference]) |
| embed( | using) |
→ PreflightProfile |
| exportFile( | format, to [, showingOptions] [, using] [, versionComments] [, forceSave]) |
| exportForCloudLibrary( | jsondata) |
→ bool |
| exportPageItemsToSnippet( | to, pageItemIds) |
| exportStrokeStyles( | to, strokeStyleList [, versionComments] [, forceSave]) |
| extractLabel( | key) |
→ string |
| findObject( | [reverseOrder]) |
→ PageItem |
| findTransliterate( | [reverseOrder]) |
→ Text |
| getAlternateLayoutsForFolio( | [resolveMaster]) |
| getElements( | ) |
→ Document |
| getStyleConflictResolutionStrategy( | [charOrParaStyle]) |
| importAdobeSwatchbookProcessColor( | name) |
→ Color |
| importAdobeSwatchbookSpotColor( | name) |
→ Color |
| importDtd( | from) |
| importFormats( | from) |
| importStyles( | format, from [, globalStrategy]) |
| importXML( | from) |
| insertLabel( | key, value) |
| k4DetachFromDocument( | objectId) |
| k4GetObjectById( | k4Id) |
→ Object |
| k4GetObjectByName( | k4Name) |
→ Object |
| k4GetObjects( | ) |
→ Object |
| k4GetShowArticleColorsState( | ) |
→ bool |
| k4GetShowFrameIconsState( | ) |
→ bool |
| k4GetShowFrameToolTipsState( | ) |
→ bool |
| k4Revoke( | ) |
| k4SaveAsRevoked( | k4FilePath) |
| k4SetArticleColorsState( | show) |
| k4SetFrameIconsState( | show) |
| k4SetFrameToolTipsState( | show) |
| k4SwitchVariants( | k4Id) |
| loadConditions( | from [, loadConditionSets]) |
| loadMasters( | from [, globalStrategyForMasterPage]) |
| loadSwatches( | from) |
| loadXMLTags( | from) |
| packageForPrint( | to, copyingFonts, copyingLinkedGraphics, copyingProfiles, updatingGraphics, includingHiddenLayers, ignorePreflightErrors, creatingReport [, includeIdml] [, includePdf] [, pdfStyle] [, useDocumentHyphenationExceptionsOnly] [, versionComments] [, forceSave]) |
→ bool |
| place( | fileName [, showingOptions] [, withProperties]) |
| placeAndLink( | parentStory [, showingOptions]) |
| placeCloudAsset( | jsondata) |
| print( | [printDialog], using) |
| printBooklet( | [printBookletDialog], using) |
| recompose( | ) |
| redo( | ) |
| removeEventListener( | eventType, handler [, captures]) |
→ bool |
| revert( | ) |
→ bool |
| revertToProject( | [forceRevert]) |
| saveACopy( | [to] [, stationery]) |
| saveSwatches( | to, swatchList [, versionComments] [, forceSave]) |
| saveXMLTags( | to [, versionComments] [, forceSave]) |
| select( | selectableItems [, existingSelection]) |
| synchronizeWithVersionCue( | [syncConflictResolution] [, versionComments]) |
→ VersionCueSyncStatus |
| toSource( | ) |
→ string |
| toSpecifier( | ) |
→ string |
| undo( | ) |
-
addEventListener( eventType, handler [, captures=false])→ EventListener -
Adds an event listener.
eventTypestring The event type. handlerThe event handler. Can accept: File or JavaScript Function. capturesbool This parameter is obsolete. (Optional) -
align( alignDistributeItems, alignOption [, alignDistributeBounds] [, reference]) -
Align page items.
alignDistributeItemsArray<PageItem> The page items to align or distribute. alignOptionAlignOptions The type of alignment to apply. alignDistributeBoundsAlignDistributeBounds The bounds within which to align or distribute the page items. (Optional) referencePageItem The reference or key object to align to distribute relative to. Required when 'align distribute bounds' specifies 'key object'. (Optional) -
asynchronousExportFile( format, to [, showingOptions=false] [, using] [, versionComments] [, forceSave=false])→ BackgroundTask -
asynchronously exports the object(s) to a file.
formatThe export format, specified as an enumeration value or as an extension that appears in the Save as type or Format menu in the Export dialog. Can accept: ExportFormat enumerator or String. toFile The path to the export file. showingOptionsbool If true, displays the export options dialog. (Optional) usingPDFExportPreset The export style. (Optional) versionCommentsstring The comment for this version. (Optional) forceSavebool If true, forcibly saves a version. (Optional) -
changeComposer( ) -
Change comoser to optyca
-
changeGlyph( [reverseOrder])→ Text -
Finds glyphs that match the find what value and replaces the glyphs with the change to value.
reverseOrderbool If true, returns the results in reverse order. (Optional) -
changeGrep( [reverseOrder])→ Text -
Finds text that matches the find what value and replaces the text with the change to value.
reverseOrderbool If true, returns the results in reverse order. (Optional) -
changeObject( [reverseOrder])→ PageItem -
Finds objects that match the find what value and replace the objects with the change to value.
reverseOrderbool If true, returns the results in reverse order. (Optional) -
changeText( [reverseOrder])→ Text -
Finds text that matches the find what value and replaces the text with the change to value.
reverseOrderbool If true, returns the results in reverse order. (Optional) -
changeTransliterate( [reverseOrder])→ Text -
Finds text that matches the find character type value and replaces the text with the change character type value.
reverseOrderbool If true, returns the results in reverse order. (Optional) -
checkIn( [versionComments] [, forceSave=false]) -
Check in to Version Cue.
versionCommentsstring The comment for this version (Optional) forceSavebool Forcibly save a version (Optional) -
clearFrameFittingOptions( ) -
Removes the frame fittings options and resets it to the initial state.
-
close( [saving=SaveOptions.ASK] [, savingIn] [, versionComments] [, forceSave=false]) -
Close the Document
savingSaveOptions Whether to save changes before closing the Document (Optional) savingInFile The file in which to save the Document (Optional) versionCommentsstring The comment for this version (Optional) forceSavebool Forcibly save a version (Optional) -
colorTransform( colorValue, sourceColorSpace, destinationColorSpace)→ number -
Transforms color values
colorValueArray<number> source color value sourceColorSpaceColorSpace source color space destinationColorSpaceColorSpace destination color space -
createAlternateLayout( spreadItems, name, width, height, createTextStyles, linkTextStories, layoutRule) -
Creates an alternate layout for a given list of spreads.
spreadItemsArray<Spread> The spreads to create an alternate layout for. namestring The name of the alternate layout. Note: This is used for the named layout for the new section for the duplicated spreads. widthMeasurement Unit (Number or String)=any The width of the pages created. heightMeasurement Unit (Number or String)=any The height of the pages created. createTextStylesbool Whether to create new text styles. linkTextStoriesbool Whether to create linked text for duplicated text stories. layoutRuleLayoutRuleOptions What layout rule to set on the pages. -
createEmailQRCode( [emailAddress] [, subject] [, body], qrCodeSwatch [, withProperties]) -
Create Email QR Code on the page item or document
emailAddressstring QR code Email Address (Optional) subjectstring QR code Email Subject (Optional) bodystring QR code Email Body Message (Optional) qrCodeSwatchSwatch to be applied on generated QR Code Graphic . Can accept: Swatch or String. (Optional) withPropertiesArray<string> Initial values for properties of the new Document. Above parameters can also be passed as properties (Optional) -
createHyperlinkQRCode( [urlLink], qrCodeSwatch [, withProperties]) -
Create Hyperlink QR Code on the page item or document
urlLinkstring QR code Hyperlink URL (Optional) qrCodeSwatchSwatch to be applied on generated QR Code Graphic . Can accept: Swatch or String. (Optional) withPropertiesArray<string> Initial values for properties of the new Document. Above parameters can also be passed as properties (Optional) -
createMissingFontObject( fontFamily, fontStyleName, postscriptName)→ Font -
Create a missing font object.
fontFamilystring The name of the font family fontStyleNamestring The name of the font style. postscriptNamestring The PostScript name of the font. -
createPlainTextQRCode( [plainText], qrCodeSwatch [, withProperties]) -
Create Plain Text QR Code on the page item
plainTextstring QR code Plain Text (Optional) qrCodeSwatchSwatch to be applied on generated QR Code Graphic . Can accept: Swatch or String. (Optional) withPropertiesArray<string> Initial values for properties of the new Document. Above parameters can also be passed as properties (Optional) -
createTOC( using [, replacing=false] [, fromBook] [, placePoint] [, includeOverset=false] [, destinationLayer])→ Story -
Creates a table of contents.
usingTOCStyle The TOC style to use to define the content, title, and format of the table of contents. replacingbool If true, replaces the existing TOC. (Optional) fromBookBook The book whose documents to include in the TOC. (Optional) placePointArray<Measurement Unit (Number or String)=any> The point at which to place the TOC story, specified as page coordinates in the format [x, y]. (Optional) includeOversetbool If true, includes overset text TOC entries in the TOC. (Optional) destinationLayerLayer The layer on which to place the TOC. (Optional) -
createTextMsgQRCode( [cellNumber] [, textMessage], qrCodeSwatch [, withProperties]) -
Create Text Msg QR Code on the page item or document
cellNumberstring QR code Text Phone Number (Optional) textMessagestring QR code Text Message (Optional) qrCodeSwatchSwatch to be applied on generated QR Code Graphic . Can accept: Swatch or String. (Optional) withPropertiesArray<string> Initial values for properties of the new Document. Above parameters can also be passed as properties (Optional) -
createVCardQRCode( [firstName] [, lastName] [, jobTitle] [, cellPhone] [, phone] [, email] [, organisation] [, streetAddress] [, city] [, adrState] [, country] [, postalCode] [, website], qrCodeSwatch [, withProperties]) -
Create Business Card QR Code on the page item or load on document's placegun
firstNamestring QR code Business Card First Name (Optional) lastNamestring QR code Business Card Last Name (Optional) jobTitlestring QR code Business Card Title (Optional) cellPhonestring QR code Business Card Cell Phone Number (Optional) phonestring QR code Business Card Phone Number (Optional) emailstring QR code Business Card Email Address (Optional) organisationstring QR code Business Card Organisation (Optional) streetAddressstring QR code Business Card Street Address (Optional) citystring QR code Business Card City (Optional) adrStatestring QR code Business Card State (Optional) countrystring QR code Business Card Country (Optional) postalCodestring QR code Business Card Postal Code (Optional) websitestring QR code Business Card URL (Optional) qrCodeSwatchSwatch to be applied on generated QR Code Graphic . Can accept: Swatch or String. (Optional) withPropertiesArray<string> Initial values for properties of the new Document. Above parameters can also be passed as properties (Optional) -
deleteAlternateLayout( name) -
Deletes an alternate layout.
namestring The name of the alternate layout to delete. -
deleteUnusedTags( ) -
Deletes unused XML markup tags.
-
distribute( alignDistributeItems, distributeOption [, alignDistributeBounds] [, useDistributeMeasurement] [, absoluteDistributeMeasurement] [, reference]) -
Distribute page items.
alignDistributeItemsArray<PageItem> The page items to align or distribute distributeOptionDistributeOptions The type of distribution to apply. alignDistributeBoundsAlignDistributeBounds The bounds within which to align or distribute the page items. (Optional) useDistributeMeasurementbool If true, distribute space between page items. When this property is true, the bounds setting is ignored. (Optional) absoluteDistributeMeasurementMeasurement Unit (Number or String)=any The distance to use when distributing page items. Required when 'align distribute bounds' specifies 'key object'. (Optional) referencePageItem The reference or key object to align to distribute relative to. Required when 'align distribute bounds' specifies 'key object'. (Optional) -
embed( using)→ PreflightProfile -
Embed this profile to the document.
usingThe preflight profile to embed. Can accept: String or PreflightProfile. -
exportFile( format, to [, showingOptions=false] [, using] [, versionComments] [, forceSave=false]) -
Exports the object(s) to a file.
formatThe export format, specified as an enumeration value or as an extension that appears in the Save as type or Format menu in the Export dialog. Can accept: ExportFormat enumerator or String. toFile The path to the export file. showingOptionsbool If true, displays the export options dialog. (Optional) usingPDFExportPreset The export style. (Optional) versionCommentsstring The comment for this version. (Optional) forceSavebool If true, forcibly saves a version. (Optional) -
exportForCloudLibrary( jsondata)→ bool -
Exports as assets required for cloud library.
jsondatastring JSON encoded information about the export. -
exportPageItemsSelectionToSnippet( to) -
Exports selected page items to snippet on the destination file path.
toFile The path to the export file. -
exportPageItemsToSnippet( to, pageItemIds) -
Exports input page item ids to snippet on the destination file path.
toFile The path to the export file. pageItemIdsArray<number> The array of the page item ids. -
exportStrokeStyles( to, strokeStyleList [, versionComments] [, forceSave=false]) -
Exports stroke styles or presets.
toFile The file to save to strokeStyleListArray<StrokeStyle> The list of stroke styles to save versionCommentsstring The comment for this version (Optional) forceSavebool Forcibly save a version (Optional) -
extractLabel( key)→ string -
Gets the label value associated with the specified key.
keystring The key. -
findGlyph( [reverseOrder])→ Text -
Finds glyphs that match the find what value.
reverseOrderbool If true, returns the results in reverse order. (Optional) -
findGrep( [reverseOrder])→ Text -
Finds text that matches the find what value.
reverseOrderbool If true, returns the results in reverse order. (Optional) -
findObject( [reverseOrder])→ PageItem -
Finds objects that match the find what value.
reverseOrderbool If true, returns the results in reverse order. (Optional) -
findText( [reverseOrder])→ Text -
Finds text that matches the find what value.
reverseOrderbool If true, returns the results in reverse order. (Optional) -
findTransliterate( [reverseOrder])→ Text -
Finds text that matches the find character type value.
reverseOrderbool If true, returns the results in reverse order. (Optional) -
getAlternateLayoutsForFolio( [resolveMaster]) -
This will return an array of structs containing information about the alternate layouts.
resolveMasterbool Resolves layout policy if setting is "use master" - default is true. (Optional) -
getElements( )→ Document -
Resolves the object specifier, creating an array of object references.
-
getSelectedTextDirection( )→ TextDirection -
Selected text direction
-
getStyleConflictResolutionStrategy( [charOrParaStyle]) -
Get the resolution strategy for style conflict, false if the user cancels
charOrParaStyleStyleType Style type to look at. (Optional) -
importAdobeSwatchbookProcessColor( name)→ Color -
Imports a process color swatch from a preloaded Adobe color book.
namestring The process color to load. -
importAdobeSwatchbookSpotColor( name)→ Color -
Imports a spot color swatch from an Adobe color book.
namestring The spot color to load. -
importDtd( from) -
Imports a DTD to use for validation.
fromFile The path to the DTD file. -
importFormats( from) -
Imports the cross reference formats from specified file.
fromFile The file whose formats to import. -
importStyles( format, from [, globalStrategy=GlobalClashResolutionStrategy.LOAD_ALL_WITH_OVERWRITE]) -
Imports the specified styles.
formatImportFormat The types of styles to import. fromFile The file containing the styles you want to import. globalStrategyGlobalClashResolutionStrategy The resolution strategy to employ for imported styles that have the same names as existing styles. (Optional) -
importXML( from) -
Imports the specified XML file into an InDesign document.
fromFile The XML file. -
insertLabel( key, value) -
Sets the label to the value associated with the specified key.
keystring The key. valuestring The value. -
k4DetachFromDocument( objectId) -
K4 Detach Object from Layout
objectIdnumber Object, must be a K4 object -
k4GetObjectById( k4Id)→ Object -
K4 Get Object By ID
k4Idstring K4 ID -
k4GetObjectByName( k4Name)→ Object -
K4 Get Object By Name
k4Namestring K4 Name -
k4GetObjects( )→ Object -
K4 Get Objects
-
k4GetServerData( )→ K4ServerData -
K4 Get Server Data
-
k4GetShowArticleColorsState( )→ bool -
K4 Get Show Article Colors State
-
k4GetShowFrameIconsState( )→ bool -
K4 Get Show Frame Icons State
-
k4GetShowFrameToolTipsState( )→ bool -
K4 Get Show Frame Tools Tips State
-
k4Revoke( ) -
K4 Revoke
-
k4SaveAsRevoked( k4FilePath) -
K4 Save As Revoked
k4FilePathstring K4 File Path -
k4SetArticleColorsState( show) -
K4 Set Article Colors State
showbool Show -
k4SetFrameIconsState( show) -
K4 Set Frame Icons State
showbool Show -
k4SetFrameToolTipsState( show) -
K4 Set Frame Tool Tips State
showbool Show -
k4SwitchVariants( k4Id) -
K4 Switch Variants
k4Idstring K4 ID -
loadConditions( from [, loadConditionSets]) -
Load conditions from the specified file.
fromFile The path to the file that contains the conditions. loadConditionSetsbool If true, load the condition sets as well. (Optional) -
loadMasters( from [, globalStrategyForMasterPage=GlobalClashResolutionStrategyForMasterPage.LOAD_ALL_WITH_OVERWRITE]) -
Load masterpages from an InDesign file.
fromFile The InDesign file to load the masters from. globalStrategyForMasterPageGlobalClashResolutionStrategyForMasterPage the global clash resolution strategy for load master page (Optional) -
loadSwatches( from) -
Load swatches from the specified file.
fromFile The swatch file or InDesign document. -
loadXMLTags( from) -
Loads a set of XML markup tags from the specified file.
fromFile The path to the file that contains the tags. -
mapStylesToXMLTags( ) -
Auto tag the document based on the style to tag mappings
-
mapXMLTagsToStyles( ) -
Auto style the document based on the tag to style mappings
-
packageForPrint( to, copyingFonts, copyingLinkedGraphics, copyingProfiles, updatingGraphics, includingHiddenLayers, ignorePreflightErrors, creatingReport [, includeIdml] [, includePdf] [, pdfStyle] [, useDocumentHyphenationExceptionsOnly] [, versionComments] [, forceSave=false])→ bool -
Packages the document.
toFile The folder, alias, or path in which to place the packaged files. copyingFontsbool If true, copies fonts used in the document to the package folder. copyingLinkedGraphicsbool If true, copies linked graphics files to the package folder. copyingProfilesbool If true, copies color profiles to the package folder. updatingGraphicsbool If true, updates graphics links to the package folder. includingHiddenLayersbool If true, copies fonts and links from hidden layers to the package. ignorePreflightErrorsbool If true, ignores preflight errors and proceeds with the packaging. If false, cancels the packaging when errors exist. creatingReportbool If true, creates a package report that includes printing instructions, print settings, lists of fonts, links and required inks, and other information. includeIdmlbool If true, generates and includes IDML in the package folder. (Optional) includePdfbool If true, generates and includes PDF in the package folder. (Optional) pdfStylestring If specified and PDF is to be included, use this style for PDF export if it is valid, otherwise use the last used PDF preset. (Optional) useDocumentHyphenationExceptionsOnlybool If this option is selected, InDesign flags this document so that it does not reflow when someone else opens or edits it on a computer that has different hyphenation and dictionary settings. (Optional) versionCommentsstring The comments for the version. (Optional) forceSavebool If true, forcibly saves a version. (Optional) -
place( fileName [, showingOptions=false] [, withProperties]) -
Place one or more files following the behavior of the place menu item. This may load the place gun or replace the selected object, depending on current preferences.
fileNameOne or more files to place. Can accept: File or Array of Files. showingOptionsbool Whether to display the import options dialog (Optional) withPropertiesObject Initial values for properties of the placed object(s) (Optional) -
placeAndLink( parentStory [, showingOptions=false]) -
Deprecated: Use ContentPlacerObject load method. Original Description: Place following the behavior of the place and link story menu item. This will load the place gun.
parentStoryStory The story to place and link from. showingOptionsbool Whether to display the link options dialog (Optional) -
placeCloudAsset( jsondata) -
place a cloud asset on the document
jsondatastring JSON data containing metadata about the cloud asset -
print( [printDialog], using) -
Prints the Document(s).
printDialogbool Whether to invoke the print dialog (Optional) usingPrinter preset to use. Can accept: PrinterPresetTypes enumerator or PrinterPreset. (Optional) -
printBooklet( [printBookletDialog=false], using) -
Print the Booklet using current document and Booklet and Print settings in the document
printBookletDialogbool Whether to invoke the print booklet dialog (Optional) usingPrinter preset to use. Can accept: PrinterPresetTypes enumerator or PrinterPreset. (Optional) -
recompose( ) -
Recomposes the text in the Document.
-
redo( ) -
Redoes the last action.
-
removeEventListener( eventType, handler [, captures=false])→ bool -
Removes the event listener.
eventTypestring The registered event type. handlerThe registered event handler. Can accept: File or JavaScript Function. capturesbool This parameter is obsolete. (Optional) -
resetAllButtons( ) -
Resets all the buttons to their Normal state.
-
resetAllMultiStateObjects( ) -
Resets all the multi-state objects to their first state.
-
revert( )→ bool -
Reverts the document to its state at the last save operation.
-
revertToProject( [forceRevert=false]) -
Reverts to the version of the document in Version Cue.
forceRevertbool Forcibly reverts to the project version. (Optional) -
save( [to] [, stationery=false] [, versionComments] [, forceSave=false])→ Document -
Save the document
toFile Where to save the document. If the document is already saved, a copy is saved at this path, the original file is closed the new copy is opened (Optional) stationerybool Whether to save the file as stationery (Optional) versionCommentsstring The comment for this version (Optional) forceSavebool Forcibly save a version (Optional) -
saveACopy( [to] [, stationery=false]) -
Saves a copy of the document.
toFile The file path for the copy. Note: Leaves the original document open and does not open the copy. (Optional) stationerybool If true, saves the file as stationery (Mac OS) or as a template (Windows). Note: The file extension for stationery and templates is different than the extension for regular files. (Optional) -
saveSwatches( to, swatchList [, versionComments] [, forceSave=false]) -
Saves the specified swatch(es) to a swatchbook file.
toFile The swatchbook file to save to. swatchListArray<Swatch> The swatch(es) to save. versionCommentsstring The comment for this version. (Optional) forceSavebool If true, forcibly saves a version. (Optional) -
saveXMLTags( to [, versionComments] [, forceSave=false]) -
Saves a set of tags to an external file.
toFile The full path to the file in which to save the tags. versionCommentsstring The comment for this version. (Optional) forceSavebool If true, forcibly saves a version. (Optional) -
select( selectableItems [, existingSelection=SelectionOptions.REPLACE_WITH]) -
Selects the specified object(s).
selectableItemsThe objects to select. Can accept: Object, Array of Objects, NothingEnum enumerator or SelectAll enumerator. existingSelectionSelectionOptions The selection status of the Document in relation to previously selected objects. (Optional) -
synchronizeWithVersionCue( [syncConflictResolution=SyncConflictResolution.SKIP_CONFLICTS] [, versionComments])→ VersionCueSyncStatus -
Synchronizes the file with the Version Cue project.
syncConflictResolutionSyncConflictResolution The conflict resolution method to use during synchronization. (Optional) versionCommentsstring The comments that describe the version. (Optional) -
toSource( )→ string -
Generates a string which, if executed, will return the Document.
-
toSpecifier( )→ string -
Retrieves the object specifier.
-
undo( ) -
Undoes the last action.
-
updateCrossReferences( ) -
Updates cross references' text source content in the document.