jsreport recipe which is rendering pdf from html using phantomjs
npm install @jsreport/jsreport-phantom-pdf⚠️ This repository has been moved to the monorepo jsreport/jsreport
--
recipe in for template rendering set template.recipe=phantom-pdf in the rendering request.
js
{
template: { content: '...', recipe: 'phantom-pdf', engine: '...', phantom: { ... } }
}
`
jsreport-core
You can apply this extension also manually to jsreport-core
`js
var jsreport = require('jsreport-core')()
jsreport.use(require('jsreport-phantom-pdf')({ strategy: 'phantom-server' }))
`
Changelog
$3
- minimum node.js version is now 22.18.0
$3
- internal changes to support new response.output api
$3
- minimum node.js version is now 18.15.0`