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.