Forum


Replies: 3   Views: 282
Php undefined array merging documents
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  · 23-02-2025 - 10:09

Hello,

UPDATE: phpdocx 16 adds support to remote images when merging documents.

Thank you for providing the DOCX documents and highlighting the issue you encountered. The error arises due to missing support for remote images during the document merge process.

To resolve this, the simplest approach is to embed the images directly when generating the documents, rather than using remote URLs. When utilizing embedHTML and replaceVariableByHTML, ensure that the downloadImages option is set to true (which is the default value). It appears that this option may currently be set to false in your implementation.

Furthermore, we have incorporated support for remote images in the current testing branch of the MultiMerge class, which will be included in the next stable release of phpdocx.

Regards.