# jsreport-phantom-pdf

> jsreport recipe which is rendering pdf from html using phantomjs

Latest version **2.6.1** (published 2020-11-02) · LGPL license · 0 weekly downloads

## Install

```sh
npm install jsreport-phantom-pdf
pnpm add jsreport-phantom-pdf
yarn add jsreport-phantom-pdf
bun add jsreport-phantom-pdf
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.6.1 |
| Published | 2020-11-02 |
| First published | 2015-11-13 |
| Weekly downloads | 0 |
| License | LGPL |
| TypeScript types | separate (@types/jsreport-phantom-pdf) |
| Module format | CommonJS |
| Node | >=8.9 |
| Dependencies | 3 |
| Unpacked size | 92.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Jan Blaha |
| Maintainers | pofider, bjrmatos |
| Keywords | jsreport, pdf |

## Links

- npm: https://www.npmjs.com/package/jsreport-phantom-pdf
- Repository: https://github.com/jsreport/jsreport-phantom-pdf
- Issues: https://github.com/jsreport/jsreport-phantom-pdf/issues
- npm.io page: https://npm.io/package/jsreport-phantom-pdf

## Dependencies (3)

- [bluebird](https://npm.io/package/bluebird.md) 3.5.4
- [stream-to-array](https://npm.io/package/stream-to-array.md) 2.3.0
- [phantom-html-to-pdf](https://npm.io/package/phantom-html-to-pdf.md) 0.6.1

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 2.6.1 (latest) — 2020-11-02
- 1.3.4-beta (beta) — 2017-02-23
- 2.6.0 — 2020-09-07
- 2.5.1 — 2020-03-04
- 2.5.0 — 2020-03-02
- 2.4.2 — 2019-09-18
- 2.4.1 — 2019-09-04
- 2.4.0 — 2019-09-04
- 2.3.0 — 2019-07-09
- 2.2.0 — 2019-03-01
- 2.1.4 — 2018-12-12
- 2.1.3 — 2018-07-13
- 2.1.2 — 2018-07-13
- 2.1.1 — 2018-07-09
- 2.1.0 — 2018-07-04
- … 30 more at https://npm.io/package/jsreport-phantom-pdf/versions

## README

# jsreport-phantom-pdf
[![NPM Version](http://img.shields.io/npm/v/jsreport-phantom-pdf.svg?style=flat-square)](https://npmjs.com/package/jsreport-phantom-pdf)
[![Build Status](https://travis-ci.org/jsreport/jsreport-phantom-pdf.png?branch=master)](https://travis-ci.org/jsreport/jsreport-phantom-pdf)

> jsreport recipe which is rendering pdf from html using phantomjs

See the docs https://jsreport.net/learn/phantom-pdf

## Installation

> **npm install jsreport-phantom-pdf**


## Usage
To use `recipe` in for template rendering set `template.recipe=phantom-pdf` in the rendering request.

```js
{
  template: { content: '...', recipe: 'phantom-pdf', engine: '...', phantom: { ... } }
}
```

## 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-phantom-pdf')({ strategy: 'phantom-server' }))
```

---
_Source: https://npm.io/package/jsreport-phantom-pdf · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
