https://github.com/devchitchat/html-to-pdf
A Bun HTTP server that converts HTML to PDF. POST HTML, receive a PDF stream.
https://github.com/devchitchat/html-to-pdf
Last synced: 23 days ago
JSON representation
A Bun HTTP server that converts HTML to PDF. POST HTML, receive a PDF stream.
- Host: GitHub
- URL: https://github.com/devchitchat/html-to-pdf
- Owner: devchitchat
- Created: 2026-05-01T21:40:38.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-05-01T21:51:27.000Z (about 2 months ago)
- Last Synced: 2026-05-01T23:27:44.210Z (about 2 months ago)
- Language: JavaScript
- Size: 33.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# html-to-pdf
To install dependencies:
```bash
bun install
```
To run:
```bash
bun run index.js
```
This project was created using `bun init` in bun v1.3.12. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
# Usage
```sh
curl -X POST http://localhost:3000 --data-binary @file.html --output out.pdf
```
# Docker
```sh
docker build -t html-to-pdf .
docker run -p 3000:3000 html-to-pdf
```
```sh
curl -X POST http://localhost:3000 --data-binary @file.html --output out.pdf
```