w-docx2pdf
v1.0.5
Published
A tool for docx2pdf.
Maintainers
Readme
w-docx2pdf
A tool for docx2pdf.
Documentation
To view documentation or get support, visit docs.
Core
w-docx2pdfis based on thedocx2pdfinpython, and only run inWindows.
Installation
Using npm(ES6 module):
npm i w-docx2pdfExample:
Link: [dev source code]
import WDocx2pdf from './src/WDocx2pdf.mjs'
//import WDocx2pdf from 'w-docx2pdf/src/WDocx2pdf.mjs'
//import WDocx2pdf from 'w-docx2pdf'
async function test() {
let fpIn = `./test/ztmp.docx`
let fpOut = `./test/ztmp.pdf`
let opt = {}
let r = await WDocx2pdf(fpIn, fpOut, opt)
console.log(r)
// => ok
w.fsDeleteFile(fpOut)
}
test()
.catch((err) => {
console.log('catch', err)
})