From yoanbernabeu-slidev-skills
Exports Slidev presentations to PDF, PPTX, and PNG formats via CLI or browser for sharing, printing, and archiving.
How this skill is triggered — by the user, by Claude, or both
Slash command
/yoanbernabeu-slidev-skills:slidev-exportThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill covers all export options in Slidev, including PDF, PPTX, PNG, and Markdown exports with various configuration options.
This skill covers all export options in Slidev, including PDF, PPTX, PNG, and Markdown exports with various configuration options.
Since v0.50.0, use the built-in browser exporter:
npm run devhttp://localhost:3030/exportRequires playwright-chromium:
npm install -D playwright-chromium
Then:
npx slidev export
Browser Method:
/exportCLI Method:
npx slidev export
Output: ./slides-export.pdf
Browser Method:
/exportCLI Method:
npx slidev export --format pptx
Output: ./slides-export.pptx
Note: Slides exported as images, presenter notes included.
CLI Method:
npx slidev export --format png
Output: Individual PNG files in ./slides-export/ directory.
npx slidev export --format md
Compiles Markdown with embedded PNG images.
| Option | Description |
|---|---|
--format | Export format: pdf, pptx, png, md |
--output | Output file/directory name |
--dark | Export in dark mode |
--with-clicks | Export each click as separate page |
--range | Export specific slides |
Custom output name:
npx slidev export --output my-presentation
Dark mode export:
npx slidev export --dark
Export with clicks:
npx slidev export --with-clicks
Creates separate pages for each animation step.
Specific slides:
npx slidev export --range 1,4-5,8
Exports slides 1, 4, 5, and 8.
For complex slides with animations:
npx slidev export --timeout 60000
Increases timeout to 60 seconds.
npx slidev export --wait 10000
Waits 10 seconds before starting export.
npx slidev export --wait-until networkidle
Options: none, load, domcontentloaded, networkidle
npx slidev export --with-toc
Generates PDF outline with slide titles.
npx slidev export --format png --omit-background
Removes default white background.
---
exportFilename: my-awesome-presentation
---
---
download: true
---
Shows download button in presentation.
---
download: 'https://example.com/slides.pdf'
---
Links to pre-generated PDF.
Only final state of each slide exported.
Each click step becomes a separate page:
Use --with-clicks for handouts so readers see progression.
npx slidev export --scale 2
Higher scale = higher quality (and larger file).
npx slidev export --format png --scale 2
Add convenient scripts:
{
"scripts": {
"dev": "slidev --open",
"build": "slidev build",
"export": "slidev export",
"export:pdf": "slidev export --format pdf",
"export:pptx": "slidev export --format pptx",
"export:png": "slidev export --format png",
"export:dark": "slidev export --dark"
}
}
--wait optionpublic/ directoryExport doesn't include animations.
Use --with-clicks to capture states.
npx slidev export --timeout 120000 --wait 5000
For large presentations:
NODE_OPTIONS="--max-old-space-size=4096" npx slidev export
| Export | Build | |
|---|---|---|
| Output | PDF/PPTX/PNG | Static website |
| Interactive | No | Yes |
| Animations | Static captures | Working |
| Size | Smaller | Larger |
| Sharing | Email/Drive | Web hosting |
Don't wait until presentation day:
npm run export
Check:
Standard is 16:9. Don't change mid-presentation.
Some features don't export well:
PPTX export includes notes automatically.
npx slidev export --output presentation-v1.2
# High-quality PDF
npx slidev export --with-toc --scale 2
# Include all click states
npx slidev export --with-clicks
# Individual images
npx slidev export --format png
# Multiple formats
npm run export:pdf
npm run export:pptx
npm run export:png
When exporting:
# EXPORT COMMAND:
npx slidev export [options]
# OPTIONS USED:
--format [pdf|pptx|png|md]
--output [filename]
--with-clicks (if needed)
--dark (if needed)
--range [slide numbers]
--timeout [ms]
--wait [ms]
CHECKLIST BEFORE EXPORT:
OUTPUT FILES:
npx claudepluginhub joshuarweaver/cascade-content-creation-misc-1 --plugin yoanbernabeu-slidev-skillsGuides exporting Slidev presentations to PDF, PPTX, PNG, and building static SPA sites. Configures export CLI flags and troubleshoots dependencies.
Guides exporting Slidev presentations to PDF, PPTX, PNG, static SPAs; covers CLI flags, options, and Playwright dependencies.
Create and present web-based slidedecks for developers using Slidev with Markdown, Vue components, code highlighting, animations, and interactive features. Use when building technical presentations, conference talks, code walkthroughs, teaching materials, or developer decks.