html2doc
v1.0.0
Published
This is a module that turn .html to .doc
Downloads
15
Readme
Instructions
clone from html2word (https://www.npmjs.com/package/html2word) (fix import file)
Installation
npm install html2doc
This is a js package. Using this package, you can convert html files to word files. However, this conversion has several disadvantages:
- Cannot identify the height and position attributes of the dom element;
- Styles related to style do not recognize parallel formats like '.class.class' and other formats 3 convert canvas canvas as a picture can not be read in WPS, can be read in the office
- Other issues have not yet been discovered.
Use Cases
$('.main').wordExport('export word file', styles, callback)
The first parameter is the file name, the second parameter is the css style, and the third parameter is the callback function