https://github.com/jsreport/jsreport-wkhtmltopdf
jsreport recipe for rendering pdf using wkhtmltopdf
https://github.com/jsreport/jsreport-wkhtmltopdf
Last synced: about 1 year ago
JSON representation
jsreport recipe for rendering pdf using wkhtmltopdf
- Host: GitHub
- URL: https://github.com/jsreport/jsreport-wkhtmltopdf
- Owner: jsreport
- License: mit
- Created: 2015-05-21T12:45:35.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2021-09-06T17:24:34.000Z (almost 5 years ago)
- Last Synced: 2025-04-08T09:25:55.343Z (about 1 year ago)
- Language: JavaScript
- Homepage: http://jsreport.net
- Size: 483 KB
- Stars: 8
- Watchers: 4
- Forks: 10
- Open Issues: 2
-
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-wkhtmltopdf
[](https://npmjs.com/package/jsreport-wkhtmltopdf)
[](http://opensource.org/licenses/MIT)
[](https://travis-ci.org/jsreport/jsreport-wkhtmltopdf)
[jsreport](https://jsreport.net) recipe for rendering pdf using [wkhtmltopdf](http://wkhtmltopdf.org)
## Installation
> **npm install jsreport-wkhtmltopdf**
## Usage
To use `recipe` in for template rendering set `template.recipe=phantom-wkhtmltopdf` in the rendering request.
```js
{
template: { content: '...', recipe: 'wkhtmltopdf', enginne: '...', wkhtmltopdf: { ... } }
}
```
See the docs https://jsreport.net/learn/wkhtmltopdf
## 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-wkhtmltopdf')())
```