Forum


Replies: 5   Views: 3128
Pdf generation where the document contain text boxes
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 admin  · 11-04-2013 - 12:13

Hi,

The next version of phpdocx will solve images issue.
Meanwhile, apply this patch:

Index: TransformDoc.inc
===================================================================
--- TransformDoc.inc (revision: 175)
+++ TransformDoc.inc (revision: 176)
@@ -243,8 +243,8 @@
$package->getFromName('word/_rels/document.xml.rels')
);
$pathImgs = array();
- foreach ($relationsImgs->relationship as $relImg) {
- if ($relImg["Type"] == cTransformDoc::SCHEMA_IMAGEDOCUMENT) {
+ foreach ($relationsImgs->Relationship as $relImg) {
+ if ($relImg["Type"] == TransformDoc::SCHEMA_IMAGEDOCUMENT) {
$pathImgs[(string) $relImg["Id"]] =
(string) $relImg["Target"];
$pathZip[] = 'word/' . (string) $relImg["Target"];

Regards.