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
- Host: GitHub
- URL: https://github.com/eldoy/2pdf
- Owner: eldoy
- License: mit
- Created: 2022-03-15T15:27:32.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-29T00:38:15.000Z (almost 2 years ago)
- Last Synced: 2025-11-16T03:21:23.524Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 279 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!