Forum


Replies: 5   Views: 7456
Converting docx to html and vice versa
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 johnc  · 16-03-2015 - 11:13

I am converting docx into html file which is working fine. I want to convert the html file by using custom style (my own font size,style) to create another docx file. I have used the following code but its not working. $html.=$docx->getStrXHTML(); this method i convert more then one docx file into html file ... After conversation of each file(docx) i append with previous output of html file . $str1 = ""; $str2=""; $html1= str_replace('**','"',$str2); $fhtml= str_replace($str1,'',$html); $finalhtml = str_replace($str2,'',$fhtml); $output="".$finalhtml .""; $myHTML = $docx1->embedHTML($output, array('baseURL' =>"www.xxx.com/images",'downloadImages' => true)); $docx1->createDocx('simpleHTML_filtered'); Please provide suitable suggestion Thanks.

Posted by admin  · 16-03-2015 - 15:33

Hello, Sorry but we don't understand your issue. If you just need to use custom styles, please read the info available on: http://www.phpdocx.com/api-documentation/layout-and-general/import-styles-from-a-Word-document-with-PHP http://www.phpdocx.com/api-documentation/layout-and-general/parse-available-styles-Word-document-with-PHP http://www.phpdocx.com/api-documentation/layout-and-general/create-Word-custom-paragraph-style-with-PHP http://www.phpdocx.com/api-documentation/layout-and-general/create-Word-custom-list-style-with-PHP Regards.

Posted by johnc  · 18-03-2015 - 12:06

Thanks for the update., I have changed the topic to reflect the issue on hand. I would like to know phpdocx support bullet points when converting from docx to html? I am unable to see it in docs.

Posted by admin  · 18-03-2015 - 12:08

Hello, Almost all content is exported from DOCX to HTML using the conversion plugin. Just note that this conversion plugin is available only for Corporate and Enterprise licenses. Regards.

Posted by johnc  · 18-03-2015 - 13:40

Is that possible to get a trial version(Corporate or Enterprise) for testing purpose? This would help to decide for further action like buying from our end. Thanks,

Posted by admin  · 18-03-2015 - 15:05

Hello, Sorry but there's no trial of the Corporate license. But it you send a sample DOCX to contact[at].phpdocx.com we'll transform it to HTML. Regards.