Forum


Replies: 10   Views: 736
Upgrade guide from version 5 corporate to 9 advanced
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 Bouillou  · 20-06-2019 - 11:10

Thank you, the upgrade has been successfully done (for a simple basic document generation from a template at least.)

The goal of this upgrade is to use the new method getWordStyles to retrieve the font size of the style Normal.

Discussed in topic : https://www.phpdocx.com/en/forum/default/topic/1771

So, I do :

$referenceNode = array(
    'type' => 'style',
    'contains' => 'Normal',
);
$normalStyleContents = $this->docx->getWordStyles($referenceNode);

But, I am just retriving a large multidimentional array containing a lot of data, but no font-size.

Can you help me to retrieve the font size of the Normal style please?

Best regards