# html-webpack-pdf-plugin

> Output PDFs from the htmlWebpackPlugin

Latest version **1.0.2** (published 2018-12-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install html-webpack-pdf-plugin
pnpm add html-webpack-pdf-plugin
yarn add html-webpack-pdf-plugin
bun add html-webpack-pdf-plugin
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-12-30 |
| First published | 2018-12-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tim Martin |
| Maintainers | t-mart |
| Keywords | webpack, plugin, html-webpack-plugin, pdf, template |

## Links

- npm: https://www.npmjs.com/package/html-webpack-pdf-plugin
- Repository: https://github.com/t-mart/html-webpack-pdf-plugin
- Homepage: https://github.com/t-mart/html-webpack-pdf-plugin#readme
- Issues: https://github.com/t-mart/html-webpack-pdf-plugin/issues
- npm.io page: https://npm.io/package/html-webpack-pdf-plugin

## Dependencies (3)

- [tmp](https://npm.io/package/tmp.md) 0.0.33
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [puppeteer](https://npm.io/package/puppeteer.md) ^1.11.0

## 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

- 1.0.2 (latest) — 2018-12-30
- 1.0.1 — 2018-12-30
- 1.0.0 — 2018-12-30

## README

# html-webpack-pdf-plugin


## Example Usage

```
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlWebpackPDFPlugin = require('html-webpack-pdf-plugin');

module.exports = {
    //...
    plugins: [
        new HtmlWebpackPlugin({
            template: 'src/index.html',
            inject: 'body',
            writePDF: {
                format: 'Letter',
                margin: {
                    top: '1in',
                    left: '1in',
                    right: '1in',
                    bottom: '1in',
                },
            },
        }),
        new HtmlWebpackPDFPlugin(),
    ],
    //...
};

```

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