Forum


Replies: 3   Views: 166
Convert docx to html and html to docx again

Posted by rajusaravanan  · 08-06-2020 - 16:39

Team,

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

Hello,

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 https://www.phpdocx.com/documentation/introduction/word-to-html-PHP 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.

Regards.

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

Hello,

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

Regards.