jsreport-unoconv
v0.3.0
Published
jsreport unoconv for converting openoffice supported formats
Downloads
93
Readme
jsreport-unoconv
jsreport extension using unoconv to convert outputs to the formats supported by openoffice
See https://jsreport.net/learn/unoconv
Installation
npm install jsreport-unoconv
jsreport-core
You can apply this extension also manually to jsreport-core
var jsreport = require('jsreport-core')()
jsreport.use(require('jsreport-docxtemplater')())
jsreport.use(require('jsreport-unoconv')({
command: 'unoconv'
}))
const result = await reporter.render({
template: {
engine: 'none',
recipe: 'docxtemplater',
docxtemplater: {
templateAsset: {
content: fs.readFileSync(path.join(__dirname, 'template.docx'))
}
},
unoconv: {
format: 'pdf'
}
},
data: {
name: 'John'
}
}
)