Forum


Replies: 2   Views: 544
Bold page numbers using phpdocx_pagenumber ?
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 skinhat  · 19-05-2022 - 06:30

Is it possible to create bold page numbers using the tag phpdocx_pagenumber? I thought the attribute data-bold="true" might work but doesn't do anything.

Posted by admin  · 19-05-2022 - 07:47

Hello,

What kind of page numbering are you adding? Please note you need to use a custom paragraph style to apply styles using a page-of type in the phpdocx_pagenumber tag.

Regards.

Posted by skinhat  · 19-05-2022 - 09:30

Thanks. Using paragraph styles worked. I used:
 

$style = array('bold'=>true);
$docx->createParagraphStyle('myStyle', $style);

then

<phpdocx_pagenumber data-target="defaultFooter"  data-pStyle="myStyle" data-textAlign="right" />

and got bold page numbers.