https://github.com/erdnaxe/web2pdf
Any web page to PDF document
https://github.com/erdnaxe/web2pdf
Last synced: 5 months ago
JSON representation
Any web page to PDF document
- Host: GitHub
- URL: https://github.com/erdnaxe/web2pdf
- Owner: erdnaxe
- License: agpl-3.0
- Created: 2021-08-12T19:57:06.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-21T15:03:14.000Z (almost 5 years ago)
- Last Synced: 2024-06-20T00:28:15.809Z (almost 2 years ago)
- Language: Go
- Size: 28.3 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# web2pdf: any web page to PDF document
Print web pages to PDF documents using Chromium-based browsers.
## Installation instructions
```
go get -u github.com/erdnaxe/web2pdf
```
This will get and compile web2pdf. By default the executable will be in
`~/go/bin/web2pdf`.
## Usage examples
### Print all unread entries from Miniflux
[Miniflux](https://miniflux.app/) is a feed reader. Using the API, we can
print each unread entry to a PDF document to generate an offline newspaper.
Replace `username` and `miniflux.example.com` with your Miniflux username
and host.
```bash
curl -su username "https://miniflux.example.com/v1/entries?status=unread" | jq -r '.entries[] | "web2pdf --output=\(.id).pdf \"\(.url)\" # \(.feed.category.title) - \(.feed.title) - \(.title)"'
```