1.0.0 • Published 6 years ago

html2doc v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

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:

  1. Cannot identify the height and position attributes of the dom element;
  2. 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
  3. 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