web-to-pdf

Installation
SKILL.md

Web to PDF

Capture any web page — especially slide-based presentations — as a multi-page PDF using a headless browser.

How it works

A bundled Playwright script screenshots each slide (or the full page) as PNG, then assembles them into a PDF via Pillow. It auto-detects the navigation model:

Model Detection Examples
reveal.js .reveal element + Reveal JS API reveal.js decks
Vertical scroll Page height > 1.5× viewport, multiple slide elements Custom JS slide decks with stacked sections
Keyboard Multiple slide elements, not scrollable impress.js, deck.js, arrow-key decks
Single page No slide structure detected Regular web pages, articles

Prerequisites

The script bundles its own package.json. On first use (or if node_modules is missing), install dependencies:

Installs
1
First Seen
Apr 23, 2026
web-to-pdf from skills.volces.com