1.1.1 • Published 8 years ago

ht-docx v1.1.1

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

###ht-docx

基于 pandoc 把 html 或者 htmlstring 用模板转换成 docx 文档

var Docx = require("ht-docx");

var Item = new Docx(filepath || string,{
pandoc:"/usr/local/bin/pandoc",
cols:"2",
format:"A3",
//orientation: "portrait",
});

Item.toFile("bcdef.docx",function(){
console.log(arguments)
});

node test/demo.js ~/Documents/FE/esources/test/pandoc/a.html

目前只支持:

  • A3 2cols landscape
  • A3 3cols landscape
  • A4 2cols landscape
  • A4 landscape
  • A4 portrait

后面持续更新

####注意事项 在settings.xml 增加 \<w:evenAndOddHeaders w:val="1"/>


  • 1.1.0 解决配置模板错误,返回错误信息, 删除模板中冗余的代码
1.1.1

8 years ago

1.1.0

8 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago