https://github.com/jsreport/jsreport-weasyprint-pdf
jsreport recipe using weasyprint based html to pdf conversion
https://github.com/jsreport/jsreport-weasyprint-pdf
Last synced: about 1 year ago
JSON representation
jsreport recipe using weasyprint based html to pdf conversion
- Host: GitHub
- URL: https://github.com/jsreport/jsreport-weasyprint-pdf
- Owner: jsreport
- License: mit
- Created: 2017-08-13T18:28:56.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-08-20T16:52:38.000Z (almost 5 years ago)
- Last Synced: 2024-10-05T11:47:29.999Z (over 1 year ago)
- Language: JavaScript
- Size: 71.3 KB
- Stars: 10
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
⚠️ This extension is deprecated and is compatible only with the jsreport v2
--
# jsreport-weasyprint-pdf
jsreport recipe using [WeasyPrint](http://weasyprint.org/) utility to convert html to pdf. This recipe solves the same task as [phantom-pdf](https://jsreport.net/learn/phantom-pdf), [wkhtmltopdf](https://jsreport.net/learn/wkhtmltopdf) or [electron-pdf](https://github.com/bjrmatos/jsreport-electron-pdf). However it has the best support for defining printing layout using [css @page rule](https://developer.mozilla.org/en/docs/Web/CSS/@page).

## Installation
You can run the whole jsreport with already installed recipe using single command:
```sh
docker run -p 5488:5488 jsreport/jsreport-weasyprint-pdf
```
Or you can follow these steps to install [WeasyPrint](http://weasyprint.org/) recipe
1. jsreport application folder
2. `npm install jsreport-weasyprint-pdf`
3. install [WeasyPrint](http://weasyprint.org/)
## Development
```
git clone https://github.com/jsreport/jsreport-weasyprint-pdf.git
cd jsreport-weasyprint-pdf
npm install
npm run docker
```