Forum


Replies: 3   Views: 173
Using getwordstyles with a type
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  · 16-07-2024 - 17:46

Hello,

We recommend you test the samples included in the package (examples/DocxPath/getWordStyles).

All supported types are working correctly. * is a global DOCXPath selector, so a custom type should be chosen to get elements:

chart, image, default, list, paragraph (also for links and lists), run, style, table, table-row, table-cell, table-cell-paragraph

some of the these types may not be supported in phpdocx 12. These are the supported types in phpdocx 15.

Please note that by default, the parent is the main document body, maybe you need to choose '/' to set any parent query:

Main document body as default, allows to set any parent or a specific one. w:body (default), '/' (any parent) or any other specific parent (/w:tbl/, /w:tc/, /w:r/...).


On https://www.phpdocx.com/support you can read the available technical support in a license (How much support includes my license? section). For further support, please send an email to contact[at]phpdocx.com.

Regards.