Forum


Replies: 7   Views: 1826
Problem with inline style
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  · 19-07-2020 - 13:32

Hello,

phpdocx can overwrite all styles, but the type to be customized may change depending on the style. For example, a font size or a font family can be applied as global style (setDefaultFont or setDocumentDefaultStyles methods), as a custom paragraph/character style (DocxCustomizer/sample_9.php example), as a paragraph style (DocxCustomizer/sample_1.php example) or as a run style (DocxCustomizer/sample_8.php example).

If some style is not being changed is because the correct target/type (https://www.phpdocx.com/api-documentation/docxcustomizer/customize-docx-Word-documents-PHP target and type options) are not being selected.

Please check the samples included in examples/DocxCustomizer. If you post the code you are using to change the styles we'll check it.

Regards.