Forum


Replies: 1   Views: 3304
Table of contents font size
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 seb  · 30-07-2015 - 10:06

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

Posted by admin  · 03-08-2015 - 07:30

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.