How to turn HTML into a Word file

Source: Internet
Author: User
Tags phpword

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

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.