1.10.0 • Published 3 years ago

jsreport-chrome-pdf v1.10.0

Weekly downloads
4,486
License
MIT
Repository
github
Last release
3 years ago

jsreport-chrome-pdf

NPM Version Build Status

jsreport recipe which is rendering pdf and images from html using headless chrome

See the docs

Installation

npm install jsreport-chrome-pdf

Usage

To use recipe in for template rendering set template.recipe=chrome-pdf or template.recipe=chrome-image according to your needs in the rendering request.

chrome-pdf

{
  template: { content: '...', recipe: 'chrome-pdf', engine: '...', chrome: { ... } }
}

chrome-image

{
  template: { content: '...', recipe: 'chrome-image', engine: '...', chromeImage: { ... } }
}

jsreport-core

You can apply this extension also manually to jsreport-core

var jsreport = require('jsreport-core')()
jsreport.use(require('jsreport-chrome-pdf')())

Troubleshooting

Table with a lot of rows never finish rendering

When rendering a table with a lot of rows (>4000) chrome can hang if the html contains a 5 level of tab indentation in the source, the fix for this is to keep the tab indentation bellow 4 levels. you can take a look at the problem here and see how it is fixed by just updating the indentation here.

1.10.0

3 years ago

1.9.0

4 years ago

1.8.0

4 years ago

1.7.1

4 years ago

1.7.0

4 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

7 years ago