web2pdf

command module
v0.0.0-...-56eb1c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

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

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)"'

Documentation

Overview

web2pdf prints web pages to PDF documents using Chrome DevTools Protocol.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL