Forum


Replies: 5   Views: 3853
I try to put w.docx. w.docx has image. after conversion to html. no images are displayed
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 notice88  · 25-07-2012 - 03:48

I try to put w.docx. w.docx has image. after conversion to html. No images are displayed

<?php

/**
* Create a DOCX file. Transform DOCX to HTML
*
* @category Phpdocx
* @package examples
* @subpackage easy
* @copyright Copyright (c) 2009-2011 Narcea Producciones Multimedia S.L.
* (http://www.2mdc.com)
* @license LGPL
* @version 2.0
* @link http://www.phpdocx.com
* @since File available since Release 2.0
*/
require_once '../../classes/TransformDoc.inc';

$document = new TransformDoc();
$document->setStrFile('../files/w.docx');
$document->generateXHTML();
$document->validatorXHTML();
echo $file=$document->getStrXHTML();