percollate is a command-line tool used to bundle web pages into various formats. You must specify a command followed by optional flags and one or more URLs. To read HTML from stdin, use the hyphen (-) as an operand.
Commands
pdf: Bundle web pages as a PDF file.epub: Bundle web pages as an EPUB file.html: Bundle web pages as a HTML file.md: Bundle web pages as a Markdown file.
Basic Usage
Single web page to PDF:
percollate pdf --output my.pdf https://example.com
Single web page read from stdin to PDF:
curl https://example.com | percollate pdf -o my.pdf -u https://example.com -
Several web pages to a single PDF:
percollate pdf --output my.pdf https://example.com/1 https://example.com/2
percollate <command> [options] url [url]...