webpage-to-pdf
Installation
SKILL.md
webpage-to-pdf
Exports a page as an A4/Letter/Legal PDF with a title/date header and a URL/page-number footer, in one of two modes:
--mode |
Output | Pick when |
|---|---|---|
image (default) |
Chrome screenshot sliced into pages; pixel-exact, text not selectable, 1-2 MB per page | The page must look exactly as it does on screen |
text |
Chrome's print engine; vector PDF with selectable, searchable text, typically 10x or more smaller | The user will search, copy, quote or have an agent read the PDF, or wants a small archive |
This skill is self-contained: the CLI's source ships inside this skill folder, so it works with nothing else installed beyond Google Chrome and the two Python dependencies below.
1. Confirm the CLI is available
Run webpage2pdf --version. If the command is not found, install this skill's bundled copy from this skill's own directory (the folder containing this SKILL.md):
python3 -m pip install -e /absolute/path/to/this/skill/directory