Home

Awesome

⚠️ This repository has been moved to the monorepo jsreport/jsreport

jsreport-phantom-image

NPM Version Build Status

jsreport recipe which is rendering images from html using phantomjs

Installation

npm install jsreport-phantom-image

Usage

To use recipe in for template rendering set template.recipe=phantom-image in the rendering request.

{
  template: { content: '...', recipe: 'phantom-image', engine: '...', phantomImage: { ... } }
}

jsreport-core

You can apply this extension also manually to jsreport-core

var jsreport = require('jsreport-core')()
jsreport.use(require('jsreport-phantom-image')({ strategy: 'phantom-server' }))

Configurations