2.1.1 • Published 3 years ago

jsreport-phantom-image v2.1.1

Weekly downloads
22
License
LGPL
Repository
github
Last release
3 years ago

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

  • imageType - png, gif or jpeg, default png
  • quality - quality (1-100) of output image, default 100
  • printDelay - number of ms to wait before printing starts
  • blockJavaScript - block running js on the page
  • waitForJS - see phantom-html-to-pdf - the window variable to set in this case is JSREPORT_READY_TO_START
2.1.1

3 years ago

2.1.0

4 years ago

2.0.1

5 years ago

2.0.0

6 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago