Hi guys,
I'm trying to replace an image that resides on the cover page. I have (more or less) the following code.
$this->_document=new createDocx($pathToMyTemplate, $pathToSpecificTempDir);
......
$this->_document->addTemplateImage('_MYIMAGE_', $imagePath);
Now I get the following error:
Warning: DOMDocument::loadXML(): Empty string supplied as input in /var/www/Core/0.1/Includes/phpdocx/classes/CreateTemplate.inc on line 1149
It looks like that self::$_document is not set.
Now in the examples you use a different call to add a template file, but that call makes it impossible to target a specific tmp dir, something that is important in this case.
Any hints?