A document.
Go to Property Listing | Method Listing
autoStyle, autoTag, close, createTOC, deleteUnusedTags, exportFile, extractLabel, getElements, importAdobeSwatchbookProcessColor, importAdobeSwatchbookSpotColor, importCellStyles, importDtd, importStyles, importTableStyles, importXML, insertLabel, loadSwatches, loadXMLTags, packageForGoLive, packageForPrint, place, print, recompose, redefineCellStyle, redefineTableStyle, redo, revertToProject, save, saveAVersion, saveSwatches, saveXMLTags, search, select, synchronizeWithVersionCue, toSource, toSpecifier, undo
AnchoredObjectDefault, AnchoredObjectSetting, Assignments, BaselineFrameGridOption, Bookmarks, Boolean, ButtonPreference, Buttons, CellStyles, CharacterStyles, ColorSettingsPolicy, Colors, DTDs, DashedStrokeStyles, DataMerge, DataMergeImagePlaceholders, DataMergeOption, DataMergeTextPlaceholders, DictionaryPreference, DocumentPreference, DottedStrokeStyles, EditingState, File, Fonts, FootnoteOption, FormFields, GalleyPreference, Gradients, Graphic, GraphicLines, GridPreference, Groups, GuidePreference, Guides, HyperlinkExternalPageDestinations, HyperlinkPageDestinations, HyperlinkPageItemSources, HyperlinkTextDestinations, HyperlinkTextSources, HyperlinkURLDestinations, Hyperlinks, HyphenationExceptions, IndexOptions, Indexes, Inks, Languages, Layers, LayoutAdjustmentPreference, LayoutWindows, Links, MarginPreference, MasterSpreads, MetadataPreference, MixedInkGroups, MixedInks, NothingEnum, Number, Object, ObjectStyles, Ovals, PackageForGoLivePreference, PageItem, PageItems, Pages, ParagraphStyles, PasteboardPreference, Polygons, PrintPreference, Rectangles, RenderingIntent, Sections, Spreads, Stories, StoryPreference, StoryWindows, String, StripedStrokeStyles, StrokeStyles, Swatch, Swatches, TOCStyles, TableStyles, TextDefault, TextFramePreference, TextFrames, TextPreference, Tints, TransparencyPreference, TrapPresets, ValidationErrors, VersionState, ViewPreference, Windows, XMLComments, XMLElements, XMLExportMaps, XMLExportPreference, XMLImportMaps, XMLImportPreference, XMLInstructions, XMLItem, XMLItems, XMLPreference, XMLTags, XMLViewPreference
BaselineFrameGridOption, ButtonPreference, DataMergeOption, DictionaryPreference, DocumentPreference, FootnoteOption, GalleyPreference, GridPreference, GuidePreference, HyphenationExceptions, IndexOptions, LayoutAdjustmentPreference, MarginPreference, MetadataPreference, PackageForGoLivePreference, PasteboardPreference, PrintPreference, StoryPreference, TextFramePreference, TextPreference, TransparencyPreference, ViewPreference, XMLExportPreference, XMLImportPreference, XMLPreference, XMLViewPreference
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
read/write |
If true, uses LAB alternates for spot colors when available. |
||
|
read/write |
The rendering intent for colors that result from transparency interactions on the page after blending. |
||
|
readonly |
Lists all graphics contained by the Document. |
||
|
readonly |
Lists all page items contained by the Document. |
||
|
readonly |
Anchored object default settings. |
||
|
readonly |
Anchored object settings. |
||
|
readonly |
A collection of assignments. |
||
|
readonly |
The XML element associated with the Document. |
||
|
readonly |
Baseline frame grid option settings. |
||
|
readonly |
A collection of bookmarks. |
||
|
readonly |
Button preference settings. |
||
|
readonly |
A collection of buttons. |
||
|
readonly |
All cell styles |
||
|
readonly |
A collection of character styles. |
||
|
read/write |
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 |
The current CMYK profile. |
||
|
readonly |
A list of valid CMYK profiles. |
||
|
readonly |
A collection of colors. |
||
|
readonly |
A collection of dashed stroke styles. |
||
|
readonly |
A collection of data merge image placeholders. |
||
|
readonly |
The data merge option properties that define the data merge. |
||
|
readonly |
Data merge properties that define data merge fields and preferences. |
||
|
readonly |
A collection of data merge text placeholders. |
||
|
read/write |
The rendering intent for bitmap images. |
||
|
readonly |
User dictionary preference settings. |
||
|
readonly |
Document preference settings. |
||
|
readonly |
A collection of dotted stroke styles. |
||
|
readonly |
A collection of DTDs. |
||
|
readonly |
The Version Cue editing state of the file. |
||
|
readonly |
The full path to the file. |
||
|
readonly |
A collection of fonts. |
||
|
readonly |
Footnote option settings. |
||
|
readonly |
A collection of form fields. |
||
|
readonly |
The full path to the Document, including the name of the Document. |
||
|
readonly |
Galley preference settings. |
||
|
readonly |
A collection of gradients. |
||
|
readonly |
A collection of graphic lines. |
||
|
readonly |
Grid preference settings. |
||
|
readonly |
A collection of groups. |
||
|
readonly |
Guide preference settings. |
||
|
readonly |
A collection of guides. |
||
|
HyperlinkExternalPageDestinations HyperlinkExternalPageDestination |
readonly |
A collection of hyperlink external page destinations. |
|
|
readonly |
A collection of hyperlink page destinations. |
||
|
readonly |
A collection of hyperlink page item sources. |
||
|
readonly |
A collection of hyperlink text destinations. |
||
|
readonly |
A collection of hyperlink text sources. |
||
|
readonly |
A collection of hyperlink URL destinations. |
||
|
readonly |
A collection of hyperlinks. |
||
|
readonly |
A collection of hyphenation exceptions lists. |
||
|
readonly |
The index of the Document within its containing object. |
||
|
readonly |
The index options properties that define how an index is formatted. |
||
|
readonly |
A collection of indexes. |
||
|
readonly |
A collection of inks. |
||
|
read/write |
A property that can be set to any string. |
||
|
readonly |
A collection of languages. |
||
|
readonly |
A collection of layers. |
||
|
readonly |
Layout sdjustment preference settings. |
||
|
readonly |
A collection of layout windows. |
||
|
readonly |
A collection of links. |
||
|
readonly |
Margin preference settings. |
||
|
readonly |
A collection of master spreads. |
||
|
readonly |
Metadata preference settings. |
||
|
readonly |
A collection of mixed ink groups. |
||
|
readonly |
A collection of mixed inks. |
||
|
readonly |
If true, the Document has been modified since it was last saved. |
||
|
readonly |
The name of the Document. |
||
|
readonly |
A collection of object styles. |
||
|
readonly |
A collection of ellipses. |
||
|
readonly |
The Package For GoLive preference properties that define how a document is packaged for GoLive. |
||
|
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. |
||
|
readonly |
A collection of pages. |
||
|
readonly |
A collection of paragraph styles. |
||
|
readonly |
The parent of the Document (a Application). |
||
|
readonly |
Pasteboard preference settings. |
||
|
readonly |
A collection of polygons. |
||
|
readonly |
Print preference settings. |
||
|
read/write |
A property that allows setting of several properties at the same time. |
||
|
readonly |
A collection of rectangles. |
||
|
readonly |
The names of the items in the redo stack. |
||
|
readonly |
The name of the action on the top of the redo stack. |
||
|
read/write |
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 |
The current RGB profile. |
||
|
readonly |
A list of valid RGB profiles. |
||
|
readonly |
If true, the Document has been saved since it was created. |
||
|
readonly |
A collection of sections. |
||
|
Array of Objects |
read/write |
The selection. Can return: Object, Array of Objects or NothingEnum enumerator. |
|
|
read/write |
The rendering intent for all vector art (areas of solid color) in native objects. |
||
|
readonly |
A collection of spreads. |
||
|
readonly |
A collection of stories. |
||
|
readonly |
Story preference settings. |
||
|
readonly |
A collection of story windows. |
||
|
readonly |
A collection of striped stroke styles. |
||
|
readonly |
A collection of stroke styles. |
||
|
readonly |
A collection of swatches. |
||
|
readonly |
All table styles |
||
|
readonly |
Text default settings. |
||
|
readonly |
Text frame preference settings. |
||
|
readonly |
A collection of text frames. |
||
|
readonly |
Text preference settings. |
||
|
readonly |
A collection of tints. |
||
|
readonly |
A collection of TOC styles. |
||
|
readonly |
Transparency preference settings. |
||
|
readonly |
A collection of trap presets. |
||
|
readonly |
The names of the items in the undo stack. |
||
|
readonly |
The name of the action on the top of the undo stack. |
||
|
readonly |
The swatches that are not being used. |
||
|
readonly |
A collection of XML validation errors. |
||
|
readonly |
The Version Cue version state of the file. |
||
|
readonly |
View preference settings. |
||
|
readonly |
If true, the Document is visible. |
||
|
readonly |
A collection of windows. |
||
|
readonly |
A collection of XML comments. |
||
|
readonly |
A collection of XML elements. |
||
|
readonly |
A collection of XML export maps. |
||
|
readonly |
XML export preference settings. |
||
|
readonly |
A collection of XML import maps. |
||
|
readonly |
XML import preference settings. |
||
|
readonly |
A collection of XML instructions. |
||
|
readonly |
A collection of XML items. |
||
|
readonly |
The XML preference settings. |
||
|
readonly |
A collection of XML tags. |
||
|
readonly |
XML view preference settings. |
||
|
read/write |
The ruler origin, specified as page coordinates in the format [x, y]. |
undefined autoStyle ()
Auto styles the document based on the tag-to-style map.
undefined autoTag ()
Auto tags the document based on the style-to-tag map.
undefined close ([saving:SaveOptions=SaveOptions], savingIn:File)
Closes the Document.
|
Parameter |
Type |
Description |
|---|---|---|
|
saving |
The option for saving changes. (Optional) (default: SaveOptions.ASK) |
|
|
savingIn |
The file path of the saved document. Note: Required only when saving the document for the first time. If the document has previously been saved, specifying a path saves a copy and closes the original document. (Optional) |
Story createTOC (using:TOCStyle, [replacing:Boolean=Boolean], fromBook:Book, placePoint:Array of Number String, [includeOverset:Boolean=Boolean], destinationLayer:Layer)
Creates a table of contents.
|
Parameter |
Type |
Description |
|---|---|---|
|
using |
The TOC style to use to define the content, title, and format of the table of contents. |
|
|
replacing |
If true, replaces the existing TOC. (Optional) (default: false) |
|
|
fromBook |
The book whose documents to include in the TOC. (Optional) |
|
|
placePoint |
The point at which to place the TOC story, specified as page coordinates in the format [x, y]. (Optional) |
|
|
includeOverset |
If true, includes overset text TOC entries in the TOC. (Optional) (default: false) |
|
|
destinationLayer |
The layer on which to place the TOC. (Optional) |
undefined deleteUnusedTags ()
Deletes unused XML markup tags.
undefined exportFile (format:Varies ExportFormat String, to:File, [showingOptions:Boolean=Boolean], using:PDFExportPreset)
Exports the object(s) to a file.
|
Parameter |
Type |
Description |
|---|---|---|
|
format |
The export format. Can accept: ExportFormat enumerator or String. |
|
|
to |
The path of the export file. |
|
|
showingOptions |
If true, prompts the user to select export options. (Optional) (default: false) |
|
|
using |
The export style to use. (Optional) |
String extractLabel (key:String)
Gets the label value associated with the specified key.
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
The key. |
Object getElements ()
Resolves the object specifier, creating an array of object references.
Color importAdobeSwatchbookProcessColor (name:String)
Imports a process color swatch from a preloaded Adobe color book.
|
Parameter |
Type |
Description |
|---|---|---|
|
name |
The process color to load. |
Color importAdobeSwatchbookSpotColor (name:String)
Imports a spot color swatch from an Adobe color book.
|
Parameter |
Type |
Description |
|---|---|---|
|
name |
The spot color to load. |
undefined importCellStyles (from:File, replaceOption:ReplaceOption)
Used to load cell styles from another document
|
Parameter |
Type |
Description |
|---|---|---|
|
from |
The file to load styles from |
|
|
replaceOption |
overwrite, or rename |
undefined importDtd (from:File)
Imports a DTD to use for validation.
|
Parameter |
Type |
Description |
|---|---|---|
|
from |
The path to the DTD file. |
undefined importStyles (format:ImportFormat, from:File, [globalStrategy:GlobalClashResolutionStrategy=GlobalClashResolutionStrategy])
Imports the specified styles.
|
Parameter |
Type |
Description |
|---|---|---|
|
format |
The types of styles to import. |
|
|
from |
The file containing the styles you want to import. |
|
|
globalStrategy |
The resolution strategy to employ for imported styles that have the same names as existing styles. (Optional) (default: GlobalClashResolutionStrategy.LOAD_ALL_WITH_OVERWRITE) |
undefined importTableStyles (from:File, replaceOption:ReplaceOption)
Used to load table styles from another document
|
Parameter |
Type |
Description |
|---|---|---|
|
from |
The file to load styles from |
|
|
replaceOption |
overwrite, or rename |
undefined importXML (from:File)
Imports an XML file.
|
Parameter |
Type |
Description |
|---|---|---|
|
from |
The path to the XML file. |
undefined insertLabel (key:String, value:String)
Sets the label to the value associated with the specified key.
undefined loadSwatches (from:File)
Load swatches from the specified file.
|
Parameter |
Type |
Description |
|---|---|---|
|
from |
The swatch file or InDesign document. |
undefined loadXMLTags (from:File)
Loads a set of XML markup tags from the specified file.
|
Parameter |
Type |
Description |
|---|---|---|
|
from |
The path to the file that contains the tags. |
Boolean packageForGoLive (location:File, objects:Array of Varies Pages PageItems Texts)
Packages for GoLive
|
Parameter |
Type |
Description |
|---|---|---|
|
location |
File location for package |
|
|
objects |
Array of Pages |
Objects location for package. Can accept: Array of Pages, PageItems or Texts. (Optional) |
Boolean packageForPrint (to:File, copyingFonts:Boolean, copyingLinkedGraphics:Boolean, copyingProfiles:Boolean, updatingGraphics:Boolean, includingHiddenLayers:Boolean, ignorePreflightErrors:Boolean, creatingReport:Boolean)
Packages the document for handoff to a service provider.
|
Parameter |
Type |
Description |
|---|---|---|
|
to |
The folder, alias, or path in which to place the packaged files. |
|
|
copyingFonts |
If true, copies fonts used in the document to the package folder. |
|
|
copyingLinkedGraphics |
If true, copies linked graphics files to the package folder. |
|
|
copyingProfiles |
If true, copies color profiles to the package folder. |
|
|
updatingGraphics |
If true, updates graphics links to the package folder. |
|
|
includingHiddenLayers |
If true, copies fonts and links from hidden layers to the package. |
|
|
ignorePreflightErrors |
If true, ignores preflight errors and proceeds with the packaging. If false, cancels the packaging when errors exist. |
|
|
creatingReport |
If true, creates a package report that includes printing instructions, print settings, lists of fonts, links and required inks, and other information. |
undefined place (fileName:File, [showingOptions:Boolean=Boolean], withProperties:Object)
Place a file following the behavior of the place menu item
|
Parameter |
Type |
Description |
|---|---|---|
|
fileName |
The file to place |
|
|
showingOptions |
Whether to display the import options dialog (Optional) (default: false) |
|
|
withProperties |
Initial values for properties of the placed object(s) (Optional) |
undefined print (printDialog:Boolean, using:Varies PrinterPresetTypes PrinterPreset)
Prints the Document(s).
|
Parameter |
Type |
Description |
|---|---|---|
|
printDialog |
Whether to invoke the print dialog (Optional) |
|
|
using |
Printer preset to use. Can accept: PrinterPresetTypes enumerator or PrinterPreset. (Optional) |
undefined recompose ()
Recomposes the text in the Document.
undefined redefineCellStyle ()
Redefines a style based on the selection
undefined redefineTableStyle ()
Used to redefine a table style based on the selection
undefined redo ()
Redoes the last action.
undefined revertToProject ([forceRevert:Boolean=Boolean])
Reverts to the version of the document in Version Cue.
|
Parameter |
Type |
Description |
|---|---|---|
|
forceRevert |
Forcibly reverts to the project version. (Optional) (default: false) |
Document save (to:File, [stationery:Boolean=Boolean])
Saves the document
|
Parameter |
Type |
Description |
|---|---|---|
|
to |
The file path of the saved document. Note: Required only if the document has not been previously saved. If the document has previously been saved, specifying a path saves a copy and closes the original document. (Optional) |
|
|
stationery |
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) (default: false) |
undefined saveAVersion (versionComments:String, [forceSave:Boolean=Boolean])
Saves a version to Version Cue.
|
Parameter |
Type |
Description |
|---|---|---|
|
versionComments |
The comments that describe the version. (Optional) |
|
|
forceSave |
If true, forcibly saves the version. (Optional) (default: false) |
undefined saveSwatches (to:File, swatchList:Array of Swatch)
Saves the specified swatches to a file.
|
Parameter |
Type |
Description |
|---|---|---|
|
to |
The swatch file. Note: The format must be either .ase (Adobe Swatches Exchange) or a format native to the application that will use the file. |
|
|
swatchList |
The swatches to save. |
undefined saveXMLTags (to:File)
Saves the XML markup tags as an XML file.
|
Parameter |
Type |
Description |
|---|---|---|
|
to |
The name and location of the XML file. |
Text search (for:String, wholeWord:Boolean, caseSensitive:Boolean, replacingWith:String, withFindAttributes:Object, withChangeAttributes:Object)
Look for occurrences of text that matches specific criteria
|
Parameter |
Type |
Description |
|---|---|---|
|
for |
What to look for (Optional) |
|
|
wholeWord |
If true, then disregard text embedded within a larger word (Optional) |
|
|
caseSensitive |
If true, then search only for text that matches case (Optional) |
|
|
replacingWith |
What to replace the found text with, either a string or a special character (Optional) |
|
|
withFindAttributes |
A record of find preference settings to use (Optional) |
|
|
withChangeAttributes |
A record of change preference settings to use (Optional) |
undefined select (selectableItems:Array of Varies Objects NothingEnum Object SelectAll, [existingSelection:SelectionOptions=SelectionOptions])
Selects the specified object(s).
|
Parameter |
Type |
Description |
|---|---|---|
|
selectableItems |
Array of Objects |
The objects to select. Can accept: Object, Array of Objects, NothingEnum enumerator or SelectAll enumerator. |
|
existingSelection |
The selection status of the Document in relation to previously selected objects. (Optional) (default: SelectionOptions.REPLACE_WITH) |
VersionCueSyncStatus synchronizeWithVersionCue ([syncConflictResolution:SyncConflictResolution=SyncConflictResolution], versionComments:String)
Synchronizes the file with the Version Cue project.
|
Parameter |
Type |
Description |
|---|---|---|
|
syncConflictResolution |
The conflict resolution method to use during synchronization. (Optional) (default: SyncConflictResolution.SKIP_CONFLICTS) |
|
|
versionComments |
The comments that describe the version. (Optional) |
String toSource ()
Generates a string which, if executed, will return the Document.
String toSpecifier ()
Retrieves the object specifier.
undefined undo ()
Undoes the last action.
Book.styleSourceDocument
Application.activeDocument
AnchoredObjectDefault.parent
AnchoredObjectSetting.parent
Assignment.parent
BaselineFrameGridOption.parent
Bookmark.parent
Button.parent
ButtonPreference.parent
CellStyle.parent
CharacterStyle.parent
Color.parent
DTD.parent
DashedStrokeStyle.parent
DataMerge.parent
DataMergeImagePlaceholder.parent
DataMergeOption.parent
DataMergeTextPlaceholder.parent
DictionaryPreference.parent
DocumentPreference.parent
DottedStrokeStyle.parent
Font.parent
FootnoteOption.parent
FormField.parent
GalleyPreference.parent
Gradient.parent
GraphicLine.parent
GridPreference.parent
Group.parent
Guide.parent
GuidePreference.parent
Hyperlink.parent
HyperlinkExternalPageDestination.parent
HyperlinkPageDestination.parent
HyperlinkPageItemSource.parent
HyperlinkTextDestination.parent
HyperlinkTextSource.parent
HyperlinkURLDestination.parent
HyphenationException.parent
Index.parent
IndexOptions.parent
Ink.parent
Language.parent
Layer.parent
LayoutAdjustmentPreference.parent
LayoutWindow.parent
MarginPreference.parent
MasterSpread.parent
MetadataPreference.parent
MixedInk.parent
MixedInkGroup.parent
ObjectStyle.parent
Oval.parent
PackageForGoLivePreference.parent
Page.parent
PageItem.parent
ParagraphStyle.parent
PasteboardPreference.parent
Polygon.parent
PrintPreference.parent
Rectangle.parent
Section.parent
Spread.parent
Story.parent
StoryPreference.parent
StoryWindow.parent
StripedStrokeStyle.parent
StrokeStyle.parent
Swatch.parent
TOCStyle.parent
TableStyle.parent
TextDefault.parent
TextFrame.parent
TextFramePreference.parent
TextPreference.parent
Tint.parent
TransparencyPreference.parent
TrapPreset.parent
ValidationError.parent
ViewPreference.parent
Window.parent
XMLComment.parent
XMLElement.parent
XMLExportMap.parent
XMLExportPreference.parent
XMLImportMap.parent
XMLImportPreference.parent
XMLInstruction.parent
XMLItem.parent
XMLPreference.parent
XMLTag.parent
XMLViewPreference.parent