https://github.com/jsreport/jsreport-phantom-pdf
jsreport recipe which is rendering pdf from html using phantomjs
https://github.com/jsreport/jsreport-phantom-pdf
Last synced: about 1 year ago
JSON representation
jsreport recipe which is rendering pdf from html using phantomjs
- Host: GitHub
- URL: https://github.com/jsreport/jsreport-phantom-pdf
- Owner: jsreport
- License: lgpl-3.0
- Created: 2015-11-05T14:59:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-08-20T16:34:58.000Z (almost 5 years ago)
- Last Synced: 2025-03-27T11:43:33.998Z (about 1 year ago)
- Language: JavaScript
- Size: 750 KB
- Stars: 11
- Watchers: 6
- Forks: 8
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**⚠️ This repository has been moved to the monorepo [jsreport/jsreport](https://github.com/jsreport/jsreport)**
--
# jsreport-phantom-pdf
[](https://npmjs.com/package/jsreport-phantom-pdf)
[](https://travis-ci.org/jsreport/jsreport-phantom-pdf)
> 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.
```js
{
template: { content: '...', recipe: 'phantom-pdf', engine: '...', phantom: { ... } }
}
```
## jsreport-core
You can apply this extension also manually to [jsreport-core](https://github.com/jsreport/jsreport-core)
```js
var jsreport = require('jsreport-core')()
jsreport.use(require('jsreport-phantom-pdf')({ strategy: 'phantom-server' }))
```