Forum


Replies: 3   Views: 737
Get style from a document and set style other
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  · 02-11-2022 - 10:15

Hello,

You need to use two methods available in Premium licenses:

You can get get word styles using the getWordStyles method. This method returns information that can be iterated to get the needed styles.

New styles can be applied to the same DOCX or another DOCX using DOCXCustomizer.

Regards.