Generate a PDF from a web page
Converts web pages to PDF documents with customizable paper size, orientation, and margins.
/plugin marketplace add The-Focus-AI/chrome-driver/plugin install chrome-driver@focus-marketplaceURL [OUTPUT] [--paper=a4|letter] [--landscape]commands/Generate a PDF from a web page.
Parse the user's request and run:
${CLAUDE_PLUGIN_ROOT}/bin/pdf URL [OUTPUT] [OPTIONS]
Options:
--paper=SIZE - Paper size: letter (default), a4, legal, a3, a5, tabloid--landscape - Landscape orientation--margin=INCHES - All margins (default: 0.4)--scale=FACTOR - Scale 0.1-2.0 (default: 1.0)--no-background - Skip background colors/imagesIf no output path given, file saves to /tmp/page-TIMESTAMP.pdf.
Examples:
${CLAUDE_PLUGIN_ROOT}/bin/pdf https://example.com /tmp/doc.pdf
${CLAUDE_PLUGIN_ROOT}/bin/pdf https://example.com --paper=a4 --landscape
${CLAUDE_PLUGIN_ROOT}/bin/pdf https://example.com --margin=1 --scale=0.8