JSON API - addHeader

addHeader

PREMIUM TRIAL / ADVANCED

Inserts headers into a Word document.

Note

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

The contents of the different headers are defined via the use of WordFragments.

JSON data
Key Description
default The WordFragment containing the contents for the default (odd pages) header.
even The WordFragment containing the contents for the even pages header.
first The WordFragment containing the contents for the first (title) page header.
Code samples

Example #1

Example #2

Release notes
  • phpdocx 18.0:
    • new action.