Skip to content

Commit 9d65414

Browse files
authored
Merge pull request #1476 from kisabelle/patch-1
Add documentation for enabling evenAndOddHeaders
2 parents dfa2f36 + 45ee8b7 commit 9d65414

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/containers.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ You can pass an optional parameter to specify where the header/footer should be
104104
- ``Footer::FIRST`` each first page of the section
105105
- ``Footer::EVEN`` each even page of the section. Will only be applied if the evenAndOddHeaders is set to true in phpWord->settings
106106

107+
To change the evenAndOddHeaders use the ``getSettings`` method to return the Settings object, and then call the ``setEvenAndOddHeaders`` method:
108+
109+
.. code-block:: php
110+
$phpWord->getSettings()->setEvenAndOddHeaders(true);
111+
112+
107113
Footers
108114
-------
109115

0 commit comments

Comments
 (0)