InDesign Server2025
API 20.5.0.49
Object

BookContent

A document added to a book.

Hierarchy

Book

BookContent

Properties

NameType AccessDescription
Date readonly The date and time the BookContent was created.
String readonly The page range of the book content object within the book.
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
File readonly The full path to the file.
File readonly The full path to the BookContent, including the name of the BookContent.
Number readonly The unique ID of the BookContent.
Number readonly The index of the BookContent within its containing object.
Boolean readonly Returns true if the object specifier resolves to valid objects.
String read/write A property that can be set to any string.
String readonly The name of the BookContent.
Book readonly The parent of the BookContent (a Book).
Object read/write A property that allows setting of several properties at the same time.
Number readonly The size of the BookContent file.
BookContentStatus
readonly The status of the book content object file.

Methods

EventListener

Adds an event listener.

eventType String The event type.
handler File | JavaScriptFunction The event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
String

Gets the label value associated with the specified key.

key String The key.
BookContent[]

Resolves the object specifier, creating an array of object references.

void

Sets the label to the value associated with the specified key.

key String The key.
value String The value.
BookContent

Moves the book content object.

to? LocationOptions The location relative to the reference object or within the book.
reference? BookContent The reference object. Note: Required when the to parameter specifies before or after.
void

Preflight a book content object and optionally save the resulting report.

to? File The preflight report to save to.
autoOpen? Boolean If true, automatically open the report after creation.
void

Deletes the BookContent.

Boolean

Removes the event listener.

eventType String The registered event type.
handler File | JavaScriptFunction The registered event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
BookContent

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.

using File The full path name of the new book content object.
void

Matches the formatting of the book content object to the style source document.

String

Generates a string which, if executed, will return the BookContent.

String

Retrieves the object specifier.

Object of 4

Properties elsewhere that hold a BookContent.

Parameter of 5

Method parameters that accept a BookContent.

Return 16

Methods that return a BookContent.