There is a project that needs to generate Word files, format
Have seen Phpword and phpdocx, found that it is difficult to dynamically generate in the format,
If it's HTML, it's simple typography, so you're going to generate HTML, and then turn the HTML into Word,
But looking for a long time, as if only phpdocx of the pay version can be perfect to the HTML layout format into Word
The free version is not able to turn HTML into Word
Please help people, what solutions
Reply content:
There is a project that needs to generate Word files, format
Have seen Phpword and phpdocx, found that it is difficult to dynamically generate in the format,
If it's HTML, it's simple typography, so you're going to generate HTML, and then turn the HTML into Word,
But looking for a long time, as if only phpdocx of the pay version can be perfect to the HTML layout format into Word
The free version is not able to turn HTML into Word
Please help people, what solutions
There are two steps to putting an elephant in a refrigerator:
1. Convert HTML to PDF (library not much more): http://kitpdf.com/(online tool)
2. Convert PDF to Word document (this tool is also many): http://www.pdftoword.com/
HTML can be opened directly with Office Word or WPS
Try Pandoc?
pandoc -f html -t docx -o a.docx b.html
Open an HTML file with Office and save it as the Word document format you want
Received an email today a foreign friend Amway has their own products, I help to paste it, is a PDF to Word solution
Http://formswift.com/convert-pdf-to-word