Replies: 1   Views: 2181
How to check in code if a style (name or id) exists or not
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 jari.heinonen  · 08-09-2017 - 05:23


We're using Phpdocx 7.0 advanced. A great product by the way, thank you.

We have a little problem because we need to use multiple of documents for styling the output. As fas as I understand the parseStyles method creates a separate document from where you can check the available styles manually.

But how to check in the code if the style (by name) is available or not e.g. after a call to importStyles method?

Any quick advice is appreciated, thanks