https://github.com/jsreport/jsreport-unoconv
jsreport extension using unoconv to convert output report into openoffice supported output
https://github.com/jsreport/jsreport-unoconv
Last synced: about 1 year ago
JSON representation
jsreport extension using unoconv to convert output report into openoffice supported output
- Host: GitHub
- URL: https://github.com/jsreport/jsreport-unoconv
- Owner: jsreport
- License: mit
- Created: 2018-11-25T10:46:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-08-20T16:56:38.000Z (almost 5 years ago)
- Last Synced: 2024-09-18T10:04:38.050Z (over 1 year ago)
- Language: Python
- Homepage: https://jsreport.net
- Size: 184 KB
- Stars: 3
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**⚠️ This repository has been moved to the monorepo [jsreport/jsreport](https://github.com/jsreport/jsreport)**
--
# jsreport-unoconv
[](https://npmjs.com/package/jsreport-unoconv)
jsreport extension using [unoconv](https://github.com/dagwieers/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](https://github.com/jsreport/jsreport-core)
```js
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'
}
}
)
```