Forum


Replies: 5   Views: 3685
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();

Posted by admin  · 11-04-2013 - 12:13

Hello,

What version of phpdocx are you using?.

Regards. Jorge.

Posted by notice88  · 11-04-2013 - 12:13

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?

Posted by notice88  · 11-04-2013 - 12:13

[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?

Posted by notice88  · 11-04-2013 - 12:13

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