Forum


Replies: 4   Views: 3620
Font size ignored ?
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 08-01-2018 - 11:17

Hello,

The styles of page-of must be applied using a paragraph style and the pStyle option. You can use the paragraph styles from a template, imported from an external DOCX or created dynamically (https://www.phpdocx.com/api-documentation/layout-and-general/create-Word-custom-paragraph-style-with-PHP).

On the API page of the method (https://www.phpdocx.com/api-documentation/word-content/insert-page-number-Word-document-with-PHP) you can read about the options for numerical, alphabetical and page-of types (options for page-of type).

We also recommend you to check the included sample Core/addPageNumber/sample_2.php that illustrates how to set a custom style to page-of type using the addPageNumber method.

Regards.