Forum


Replies: 2   Views: 3384
How to get images from docx file after converting to html
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 7write  · 21-03-2014 - 11:53

Hi



I am using TransformDoc to convert docx files to HTML. My problem is that, I am not able to get the images in the docx file after converting to HTML.



Following is the code I am using



$document = new TransformDoc();

$document->setStrFile('test1.docx');

$document->generateXHTML();

$html = $document->getStrXHTML();



Is there any way, I can get image file also, along with the converted HTML ?