An open API service indexing awesome lists of open source software.

https://github.com/eldoy/2pdf

HTML to PDF command line tool
https://github.com/eldoy/2pdf

Last synced: 5 months ago
JSON representation

HTML to PDF command line tool

Awesome Lists containing this project

README

          

# 2pdf

Command line tool for creating PDFs from HTML files.

Based on [puppeteer.](https://github.com/puppeteer/puppeteer)

### Install

```sh
npm i -g 2pdf
```

### Usage

```sh
2pdf input.html output.pdf
```

### Troubleshooting

On Debian systems you need these libraries installed:

```
apt install libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0
```

MIT Licensed. Enjoy!