Forum


Replies: 1   Views: 2390
Help me to insert html page pls
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@intuswindows.com  · 13-07-2017 - 19:54

Hi, when i try to embedHTML() or replaceVariableByHTML() i get bad result, no css no images.

Can you help me? I can send you zip-archive with html and images, and you check whats wrong?!

Posted by admin  · 14-07-2017 - 06:31

Hello,

We recommend you to read the documentation and tips about HTML to DOCX:

https://www.phpdocx.com/documentation/introduction/html-to-word-PHP

https://www.phpdocx.com/documentation/cookbook/convert-html-to-word

The most common issue is missing Tidy for PHP and mbstring extensions. The first one (Tidy) is required to import CSS, and the second extension (mbstring) is required to work with multibyte strings.

About adding images, please read this information:

https://www.phpdocx.com/documentation/cookbook/insert-images-html

Regards.