JSON API - addHeading

addHeading

PREMIUM TRIAL / ADVANCED

Inserts a heading.

Note

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

JSON data

Styles from addText can be used.

Key Description
text Text content.
level Heading level. If not set up explicitely it takes the default value of 1.
Code samples

Example #1

Release notes
  • phpdocx 18.0:
    • new action.