slides-to-pdf

Solid

Use when the user asks to convert, export, or save an HTML slide deck as a PDF ("save the slides as PDF", "export the deck to PDF", "make a PDF of the presentation"). Works on decks built by the SlideOps (slideops) skill and on any single-file HTML deck that shows one slide per URL hash (#1,

Data & Documents 49 stars 3 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
57
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Slides to PDF Converts a JS-driven, one-slide-per-screen HTML deck into a paginated PDF: one page per slide, matching the browser rendering, with a centred page number in the footer. There is no native "print to PDF" for such decks (printing captures only the visible slide), so the pipeline is: screenshot every slide at 2x with headless Chrome, wrap the screenshots in a print-paginated page, number them, print that to PDF, then verify the PDF by rendering it back to images. Inputs to establish up front (ask only if not obvious): - **Deck path**, the literal that marks one slide (default `<section class="slide"`), and the deck's canvas size (default 1280x720). Read the deck's own CSS to confirm both before you start; a wrong size silently letterboxes or crops every page. - **Output path**: default next to the HTML, same basename, `.pdf`. - **Chrome-only UI to hide**: for SlideOps decks this is `.hud,.progress,.hint`; for other decks, identify the fixed nav/progress elements a printed page shouldn't show. ## 1. Find Chrome and make a staging directory ```bash find_chrome() { local base c for base in "$HOME/Library/Caches/ms-playwright" "$HOME/.cache/ms-playwright"; do [ -d "$base" ] || continue c=$(find "$base" -maxdepth 6 -type f \ \( -name chrome -o -name Chromium -o -name "Google Chrome for Testing" \) \ 2>/dev/null | grep -v headless_shell | sort -V | tail -1) [ -n "$c" ] && { printf '%s\n' "$c"; return; } done for c in "...

Details

Author
glukicov
Repository
glukicov/slideops
Created
1 weeks ago
Last Updated
1 weeks ago
Language
HTML
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Listed

slides-to-pdf

Converts an HTML slide deck (produced by the workshop-slides skill) into a single multi-page PDF — one page per slide, at 1280×720 (16:9), with backgrounds, gradients, Google Fonts, and accent colors preserved exactly as they appear on screen. Renders each slide through headless Chromium's print-to-PDF via Playwright, then merges the pages with pypdf. Use this skill whenever the user wants to export, convert, download, print, or share a slide deck as a PDF. Triggers on phrases like "convert my slides to PDF", "export the deck as PDF", "turn this HTML deck into a PDF", "make a PDF of the slides", "print the deck", "I need a PDF version", "slides to pdf". Also trigger proactively right after generating a deck with workshop-slides if the user mentions emailing, uploading, printing, or handing out the slides.

0 Updated 1 months ago
tammai
Web & Frontend Listed

deck-to-html

Convert a PDF or PowerPoint deck into a single self-contained interactive HTML presentation — native animated SVG charts, sequenced entrance animations, live-embedded demos, keyboard navigation, and a PDF export path. Use whenever someone wants a deck turned into HTML, an "interactive"/"animated"/"web" version of slides, a pptx/pdf converted to a web deck, or asks to rebuild charts from a deck natively. Triggers on "PPT를 HTML로", "덱을 HTML로", "interactive slides", "html deck", "pptx to html", "pdf to html slides", "animated slide deck".

2 Updated 2 weeks ago
hunkim
Data & Documents Listed

creating-presentations

Use when the user wants to build a multi-slide HTML presentation styled from a brand preset with a bundled default, or wants an existing deck reviewed, audited, or polished until it is genuinely done. Triggers on requests to create a deck, build slides, turn content into a presentation, or to audit, polish, or make a deck crisp. Includes a two-window presenter view for live sharing in Teams, Zoom, or Meet. For converting a finished HTML deck into editable PowerPoint, see the exporting-presentations-to-pptx skill.

0 Updated 1 months ago
pgoell