jsreport recipe using weasyprint based html to pdf conversion
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib updates for jsreport 2.x.x support Dec 12, 2018
studio rename to weasyprint pdf Sep 2, 2017
.dockerignore initial commit Aug 13, 2017
.eslintrc initial commit Aug 13, 2017
.gitignore initial commit Aug 13, 2017
Dockerfile fix docker image Dec 12, 2018
Dockerfile.dev fix the renaming Sep 2, 2017
LICENSE Initial commit Aug 13, 2017
README.md rename to weasyprint pdf Sep 2, 2017
index.js initial commit Aug 13, 2017
jsreport.config.js updates for jsreport 2.x.x support Dec 12, 2018
package-lock.json release 1.0.0 Dec 12, 2018
package.json release 1.0.0 Dec 12, 2018
run.sh fix docker image Dec 12, 2018

README.md

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.

weasyprint

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

  1. jsreport application folder
  2. npm install jsreport-weasyprint-pdf
  3. install WeasyPrint

Development

git clone https://github.com/jsreport/jsreport-weasyprint-pdf.git
cd jsreport-weasyprint-pdf
npm install
npm run docker