Skip to content

jamesamurr-bind/jsreport-docxtemplater

 
 

Repository files navigation

jsreport-docxtemplater

NPM Version Build Status 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'
    }
  }
)

About

Recipe using docxtemplater to create docx files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%