Back to Phpword

Preserve text

docs/usage/elements/preservetext.md

1.4.0189 B
Original Source

Preserve text

The addPreserveText method is used to add a page number or page count to headers or footers.

php
<?php

$footer->addPreserveText('Page {PAGE} of {NUMPAGES}.');