Forum


Replies: 8   Views: 4027
Importstyles issues
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  · 18-11-2015 - 18:13

Hello,

The importStyles method works fine. The most common issue when working with this method is to set a wrong style name.
We recommend you to use the parseStyles method:

http://www.phpdocx.com/api-documentation/layout-and-general/parse-available-styles-Word-document-with-PHP

to get all the styles available in a document, and check that the styles are correctly created when you generate the DOCX. Also please run the included example to check if the method is running fine on your OS.

If you still have issues after following these steps, please send to contact[at]phpdocx.com the DOCX you're importing and we'll check it.

Regards.