Forum


Replies: 4   Views: 1658
How to use div tags properly when importing html?
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 lynk  · 14-01-2021 - 06:13

Hi,
Rcently, we integrated advanced version of doxc into laravel to create docx from html. 
The html content contains general tags with inline styles. 
ex)
<div style="padding: 30px 40px; background-color: yellow">Test docx</div>

It looks like this https://share.getcloudapp.com/04uNj85Y
And the generated docx from the above one is https://share.getcloudapp.com/o0uqdLZe
seems it does not recognize padding in the example.

Actually, it's the pretty simple ex. Our html contents may include several kinds of tags, and more inline styled contents generated from tinymce.
Could you help me to solve this problem with phpdocx (embedHTML)?

Thank you