DS Server

Javascript: TableOfContentsInfo.hasPageNumbers Property

Property|Introduced in 29.0

Description

Specifies whether the table of contents contains page numbers.

Syntax

<boolean> TableOfContentsInfo.hasPageNumbers

Examples

The following example demonstrates TableOfContentsInfo.hasPageNumbers in a practical document-editing workflow. It specifies whether the table of contents contains page numbers.

function inspectHasPageNumbers(tableOfContentsInfo) {
    const hasPageNumbers = tableOfContentsInfo.hasPageNumbers;
    console.log("has page numbers:", hasPageNumbers);
}