JSON API - addTableContents

addTableContents

PREMIUM TRIAL / ADVANCED

Inserts a Table of Contents (TOC).

Note

You are reading the JSON API documentation. For the PHP API method please go to addTableContents.

JSON data

Styles from addText can be used.

Key Description
autoUpdate If true it will try to update the TOC when first opened.
displayLevels Must be of the form "1-3" where the first number is the start level an the second the end level. If not defined all existing levels are shown.
legend Defines the legend text and its style.
Code samples

Example #1

Release notes
  • phpdocx 18.0:
    • new action.