jsreport-weasyprint-pdf
v1.1.0
Published
jsreport recipe using weasyprint based html to pdf conversion
Downloads
9
Readme
jsreport-weasyprint-pdf
jsreport recipe using WeasyPrint utility to convert html to pdf. This recipe solves the same task as phantom-pdf, wkhtmltopdf or electron-pdf. However it has the best support for defining printing layout using css @page rule.
Installation
You can run the whole jsreport with already installed recipe using single command:
docker run -p 5488:5488 jsreport/jsreport-weasyprint-pdf
Or you can follow these steps to install WeasyPrint recipe
- jsreport application folder
npm install jsreport-weasyprint-pdf
- install WeasyPrint
Development
git clone https://github.com/jsreport/jsreport-weasyprint-pdf.git
cd jsreport-weasyprint-pdf
npm install
npm run docker