Forum


Replies: 3   Views: 1280
Images embedded in html are not reflecting in docx
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  · 30-07-2021 - 15:41

Hello,

phpdocx is compatible with PHP 7.3 since the release of phpdocx 8.5 (https://www.phpdocx.com/news/post/phpdocx-v8-5-release-notes/217). The current stable version, phpdocx 11, is compatible with all versions from PHP 5.2.11 to PHP 8. We are not sure if your problem comes from using PHP 7.3 with an old version of phpdocx, but if the same code worked with a previous version of PHP, then the problem must come from using an old version of phpdocx with a not supported version of PHP.

We recommend upgrading your license to use phpdocx with PHP 7.3 and newer PHP versions, and also test your script using the PHP CLI mode to check if you get some errors. You can test phpdocx 11 with embedHTML using the trial package (https://www.phpdocx.com/download_trial) before upgrading your license.

If you are downloading images from HTTPs we also recommend checking the documentation available on https://www.phpdocx.com/documentation/cookbook/insert-images-html (From HTTPS section).

Also, note that HTML Extended is only available in Premium licenses since phpdocx 9.0. Using a previous version and a Basic license as your username has tied, you can't set useHTMLExtended to true (well, you can, but it won't do anything because this option is only available in Premium licenses.).

If needed, you can send a sample script with a valid image URL to contact[at]phpdocx.com and the dev team will check it.

About logs, you can find PHP warnings and errors in your server logs, and also use any PSR-3 logger (https://www.phpdocx.com/documentation/introduction/tutorial Appendix: debugging options section).

Regards.