Forum


Replies: 2   Views: 1622
Customizewordcontent not allowing change
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 dannyguest  · 18-05-2020 - 09:16

Morning, 

I am attempting to use customizeWordContent to change the font colour of the "Heading 1" style of predefined headers within a template. 

Here is my code:

$referenceNode = array(
                'type' => 'Heading 1'
            );

            $phpdocx->customizeWordContent($referenceNode, 
                array(
                    'color' => '#000000'
                )
            );

What am I doing wrong? All I want to do is in some situations change the colour.