A document.
Go to Property Listing | Method Listing
autoStyle, autoTag, close, createTOC, deleteUnusedTags, exportFile, extractLabel, importDtd, importStyles, importXML, insertLabel, loadXMLTags, packageForGoLive, packageForPrint, print, redo, save, saveXMLTags, search, select, undo
Bookmarks, Boolean, ButtonPreference, Buttons, CharacterStyles, Colors, DTDs, DashedStrokeStyles, DataMerge, DictionaryPreference, DocumentPreference, DottedStrokeStyles, File, Fonts, 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, Ovals, PackageForGoLivePreference, PageItem, PageItems, Pages, ParagraphStyles, PasteboardPreference, PolygonPreference, Polygons, PrintPreference, Rectangles, RenderingIntent, Sections, Spreads, Stories, StoryPreference, StoryWindows, String, StripedStrokeStyles, StrokeStyles, Swatch, Swatches, TOCStyles, TextDefault, TextFramePreference, TextFrames, TextPreference, Tints, TransparencyPreference, TrapPresets, ValidationErrors, ViewPreference, Windows, XMLComments, XMLElement, XMLElements, XMLExportMaps, XMLExportPreference, XMLImportMaps, XMLImportPreference, XMLInstructions, XMLItems, XMLTags, XMLViewPreference
ButtonPreference, DictionaryPreference, DocumentPreference, GalleyPreference, GridPreference, GuidePreference, HyphenationExceptions, IndexOptions, LayoutAdjustmentPreference, MarginPreference, MetadataPreference, PackageForGoLivePreference, PasteboardPreference, PolygonPreference, PrintPreference, StoryPreference, TextFramePreference, TextPreference, TransparencyPreference, ViewPreference, XMLExportPreference, XMLImportPreference, XMLViewPreference
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
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 |
Returns the associated XML element |
||
|
readonly |
A collection of bookmarks. |
||
|
readonly |
Button preference settings. |
||
|
readonly |
A collection of buttons. |
||
|
readonly |
A collection of character styles. |
||
|
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 |
Data merge properties that define data merge fields and preferences. |
||
|
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 full path to the file. |
||
|
readonly |
A collection of fonts. |
||
|
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 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 |
Polygon preference properties to use to define default settings for creating a polygon. |
||
|
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 name of the action on the top of the redo stack. |
||
|
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 |
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 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 |
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 |
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) |
TextFrame createTOC (using:TOCStyle, [replacing:Boolean=Boolean], fromBook:Book, placePoint:Array of Number String, [includeOverset:Boolean=Boolean], destinationLayer:Layer)
Create a table of contents for a document or book
|
Parameter |
Type |
Description |
|---|---|---|
|
using |
The table of content style to use |
|
|
replacing |
Whether to replace the existing TOC (Optional) (default: false) |
|
|
fromBook |
The book from which to create the TOC (Optional) |
|
|
placePoint |
The point at which to place the TOC (Optional) |
|
|
includeOverset |
Whether to include overset text 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. |
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)
Import styles.
|
Parameter |
Type |
Description |
|---|---|---|
|
format |
The type of styles to import. |
|
|
from |
an InDesign file to import from |
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 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)
Packages for GoLive
|
Parameter |
Type |
Description |
|---|---|---|
|
location |
File location for package |
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 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 redo ()
Redoes the last action.
undefined save (to:File, [stationery:Boolean=Boolean])
Save the document
|
Parameter |
Type |
Description |
|---|---|---|
|
to |
The file path. 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 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 Object NothingEnum, [existingSelection:SelectionOptions=SelectionOptions])
Select one or more objects.
|
Parameter |
Type |
Description |
|---|---|---|
|
selectableItems |
Array of Objects |
The object(s) to select. Can accept: Object, Array of Objects or NothingEnum enumerator. |
|
existingSelection |
How to handle the existing selection (Optional) (default: SelectionOptions.REPLACE) |
undefined undo ()
Undoes the last action.
Book.styleSourceDocument
Application.activeDocument
Bookmark.parent
Button.parent
ButtonPreference.parent
CharacterStyle.parent
Color.parent
DTD.parent
DashedStrokeStyle.parent
DataMerge.parent
DictionaryPreference.parent
DocumentPreference.parent
DottedStrokeStyle.parent
Font.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
Oval.parent
PackageForGoLivePreference.parent
Page.parent
PageItem.parent
ParagraphStyle.parent
PasteboardPreference.parent
Polygon.parent
PolygonPreference.parent
PrintPreference.parent
Rectangle.parent
Section.parent
Spread.parent
Story.parent
StoryPreference.parent
StoryWindow.parent
StripedStrokeStyle.parent
StrokeStyle.parent
Swatch.parent
TOCStyle.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
XMLTag.parent
XMLViewPreference.parent