Adobe InDesign CS (3.0) Object Model JS: BookContent

InDesign CS

Class

BookContent

 A document added to a book.

QuickLinks

extractLabel, insertLabel, move, remove, replace, synchronize

Hierarchy

Book
BookContent

Properties

PropertyTypeAccessDescription
dateDate readonlyThe date and time the BookContent was created.
documentPageRangestring readonlyThe page range of the book content object within the book.
fullNameFile readonlyThe full path to the BookContent, including the name of the BookContent.
idnumber readonlyThe unique ID of the BookContent.
indexnumber readonlyThe index of the BookContent within its containing object.
labelstring r/wA property that can be set to any string.
parentBook readonlyThe parent of the BookContent (a Book).
propertiesObject r/wA property that allows setting of several properties at the same time.
sizenumber readonlySize of the file
statusBookContentStatus:
BookContentStatus.NORMAL
BookContentStatus.MISSING_DOCUMENT
BookContentStatus.DOCUMENT_OUT_OF_DATE
BookContentStatus.DOCUMENT_IN_USE
BookContentStatus.DOCUMENT_IS_OPEN
readonlyThe status of the book content object file.

Methods

Instances

string extractLabel (key: string)
Gets the label value associated with the specified key.

ParameterTypeDescription
keystringThe key.

void insertLabel (key: string, value: string)
Sets the label to the value associated with the specified key.

ParameterTypeDescription
keystringThe key.
valuestringThe value.

BookContent move ([to: LocationOptions=LocationOptions.AT_END][, reference: BookContent])
Moves the book content object.

ParameterTypeDescription
toLocationOptions:
LocationOptions.BEFORE
LocationOptions.AFTER
LocationOptions.AT_END
LocationOptions.AT_BEGINNING
LocationOptions.UNKNOWN
The location relative to the reference object or within the book. (Optional) (default: LocationOptions.AT_END)
referenceBookContentThe reference object. Note: Required when the to parameter specifies before or after. (Optional)

void remove ()
Deletes the BookContent.

BookContent replace (using: File)
Replaces a book content object with a new file. Note: If the new file replaces the current style source document, the new file becomes the style source document.

ParameterTypeDescription
usingFileThe full path name of the new book content object.

void synchronize ()
Matches the formatting of the book content object to the style source document.

Used in:

BookContent BookContent.move ([to: LocationOptions=LocationOptions.AT_END][, reference: BookContent])

Return

BookContent BookContent.move ([to: LocationOptions=LocationOptions.AT_END][, reference: BookContent])

BookContent BookContent.replace (using: File)

BookContent BookContents.add (fullName: File[, withProperties: Object])

Jongware, 27-Jun-2010 v3.0.3dContents :: Index