Replies: 4   Views: 4513
"replacetemplatevariablebyhtml" and "downloadimages"
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 HalloWelt  · 11-04-2013 - 12:13

Hmmm... it seems to be connected with the DOCX template I use and the file type of the image that should be included.
When I use my own template GIFs are no problem, but as soon as a JPG is included I get the "unreadable content" error in Word.
When I use the "examples/files/testHTML2mdc.docx" template (which also is used in "examples/easy/ReplaceTemplateVariableByHTML.php") I can embed all image file types.

This is strange... Does anybody have an idea? May it be because I'm using Word 2010 to create my template?