JSON API - addPageNumber

addPageNumber

PREMIUM TRIAL / ADVANCED

Inserts the current page number.

Note

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

JSON data

Styles from addText can be used.

Key Description
type "numerical" (default), "alphabetical" or "page-of".

options for page-of type:

Key Description
pStyle Paragraph style to be used.
textAlign center, left or right.
Code samples

Example #1

Release notes
  • phpdocx 18.0:
    • new action.