jsreport-phantom-pdf
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/jsreport-phantom-pdf package

2.6.1 • 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' }))

/jsreport-phantom-pdf/

    Package Sidebar

    Install

    npm i jsreport-phantom-pdf

    Weekly Downloads

    534

    Version

    2.6.1

    License

    LGPL

    Unpacked Size

    94.6 kB

    Total Files

    14

    Last publish

    Collaborators

    • pofider
    • bjrmatos