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.
Hi,
When i set the font size in addTableContents, the contents font size is ignored and reverts back to the font size of the document.
Im using PHPDocX Corporate 4.5 with this code:
$docx->addTableContents(
array(
'autoUpdate' => true
),
array(
'fontSize' => 24
)
);
Font size is 24, but in the output document its size 11.
Thank you for your help.
Seb
Hello,
Due to how Word works, we recommend you to use the stylesTOC parameter in the addTableContents method, this is using an external DOCX to set the styles .
The include example Core/addTableContents/sample_1.php shows how to use an external DOCX.
Regards.