Forum


Replies: 6   Views: 4248
Addimage not doing anything
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 mathanasoulis  · 11-04-2013 - 12:12

I am having the same issue. Further, when I enable logging, I get this error:

[code]Fatal error: Cannot redeclare class CreateDocx in [...]/phpdocx/classes/CreateDocx.inc on line 34[/code]


Here is my source code:

[code]
require('../phpdocx/classes/CreateDocx.inc');
$d = new CreateDocx();
$d->addText('Some Text');
$d->addImage(array('name'=>'../admin-docroot/assets/images/arrow.png'));
$d->createDocxAndDownload('test');
[/code]


With logging disabled, I am given a file to download but it contains all the html on the originating page, and does NOT contain the text "Some Text".

Thanks for any help you can provide
Aaron