Forum


Replies: 1   Views: 520
Get inline styles for a custom styled text
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 admin  · 28-04-2023 - 05:41

Hello,

We have done some quick tests and everything is working correctly when updating the styles. We have generated a DOCX with a custom style that sets a bold style and uses the default font. Using DOCXCustomizer:

$referenceNode = array(
    'type' => 'paragraph',
    'occurrence' => 1,
);

$docx->customizeWordContent($referenceNode,
    array(
        'bold' => false,
        'font' => 'Times New Roman',
    )
);

the bold style is disabled and Times New Roman is set as the font in MS Word and using phpdocx methods (the same if we done the changes manually).

If you send to contact[at]phpdocx.com a DOCX we'll check it and generate a custom sample script. If you also sent the phpdocx code you are running to change the styles we'll check it too.

Regards.