Forum


Replies: 3   Views: 1078
Add custom attributes while adding content
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  · 25-08-2021 - 09:54

Hello,

There's no way to add custom attributes using methods such as addText or addTable. Please note that each internal OOXML attribute may have its own scope, options and others. And adding not valid OOXML attributes may generate a corrupted document that MS Word can't open.

The only way would be using DOCXPath or DOCXCustomizer.

Regards.