@jsreport/jsreport-phantom-pdf

4.1.0 • Public • Published

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

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

Changelog

### 4.1.0

  • internal changes to support new response.output api

4.0.0

  • minimum node.js version is now 18.15.0
  • update studio build against new webpack and babel

3.3.0

update phantom-html-to-pdf with phantomjs ssl issues workaround

/@jsreport/jsreport-phantom-pdf/

    Package Sidebar

    Install

    npm i @jsreport/jsreport-phantom-pdf

    Weekly Downloads

    166

    Version

    4.1.0

    License

    LGPL

    Unpacked Size

    86.8 kB

    Total Files

    15

    Last publish

    Collaborators

    • pofider
    • bjrmatos