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.
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();
Hello,
What version of phpdocx are you using?.
Regards. Jorge.
I think Im using 2.5.2. It should be the latest. and its free. is the free version can also grab the images from docx?
[quote][b]Quote from admin on July 25, 2012, 06:08[/b]
Hello,
What version of phpdocx are you using?.
Regards. Jorge.[/quote]
where pictures are ignored if my version of phpdocx is free?
Test%205/files/files_CopyDocx/media/word/
it seems that when PHP docx tries to convert docx to html. The images are copied to this directory. I think PHP docx failed to copy it there. I tried viewing the source in the browser and find that image. This is where the image comes from. It just point to a directory but doesn't point into a file