Replies: 3   Views: 1418
Convert docx to html and html to docx again
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 rajusaravanan  · 08-06-2020 - 16:39


We are planning to use the phpdocx in our PHP application. We tried the trail version and it is working as expected.

Our actual requirement is user will upload the doc or docx file with more formatting along with tables and images. We need to convert that into HTML file without loosing any formatting. Then the user will edit that HTML throgh anyone editor (TinyMCE, WYSWING, etc.,) and upload it again. After that we need to convert the same HTML into Doc or Docx file with the same formatting in HTML file without compatibility mode.

Kindly let me know if the above requirement will suit using this PHPDocx.

Posted by admin  · 08-06-2020 - 16:43


phpdocx allows transforming HTML to DOCX and DOCX to HTML, among many other features. HTML to DOCX can be tested using the trial package, DOCX to HTML is only available in Advanced and Premium licenses, on you can read the supported contents and styles.

DOCX to HTML doesn't have a trial available, but if you send us some DOCX (a maximum of three), we'll send them back transformed to HTML using the latest release of phpdocx, so you can check the output quality.


Posted by rajusaravanan  · 08-06-2020 - 17:06

Sent the email along with sample docx files.

Also our requirement should be convert the external HTML file into Docx file using PHPDocx. Will this support?

Posted by admin  · 08-06-2020 - 17:37


Yes, as long as HTML and DOCX use the supported contents and styles. Please check the available documentation.