Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

jsreport-phantom-pdf

2.1.3 • Public • Published

jsreport-phantom-pdf

NPM Version Build Status

jsreport recipe which is rendering pdf from html using phantomjs

See the docs https://jsreport.net/learn/phantom-pdf

Installation

npm install jsreport-phantom-pdf

Usage

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

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

jsreport-core

You can apply this extension also manually to jsreport-core

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

Keywords

install

npm i jsreport-phantom-pdf

Downloadsweekly downloads

2,090

version

2.1.3

license

LGPL

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar