jsreport-docxtemplater
v1.4.2
Published
jsreport recipe using docxtemplater to create docx files
Downloads
9
Readme
⚠️ This repository has been moved to the monorepo jsreport/jsreport
jsreport-docxtemplater
jsreport recipe for creating docx word document using docxtemplater
See https://jsreport.net/learn/docxtemplater
Installation
npm install jsreport-docxtemplater
jsreport-core
You can apply this extension also manually to jsreport-core
var jsreport = require('jsreport-core')()
jsreport.use(require('jsreport-docxtemplater')())
const result = await reporter.render({
template: {
engine: 'none',
recipe: 'docxtemplater',
docxtemplater: {
templateAsset: {
content: fs.readFileSync(path.join(__dirname, 'template.docx'))
}
}
},
data: {
name: 'John'
}
}
)