一键导入
slidev-export
Export Slidev presentations to PDF, PPTX, and PNG. Use this skill for sharing, printing, and archiving presentations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Export Slidev presentations to PDF, PPTX, and PNG. Use this skill for sharing, printing, and archiving presentations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Master v-click and sequential animations in Slidev. Use this skill to reveal content progressively and create engaging presentations.
Add smooth slide transitions in Slidev. Use this skill for fade, slide, and custom transitions between slides.
Create beautiful code blocks with Shiki syntax highlighting. Use this skill for code snippets, line highlighting, and code groups.
Animate code transformations with Shiki Magic Move. Use this skill to create smooth morphing transitions between code states.
Add live coding with Monaco Editor in Slidev. Use this skill for interactive code demos, executable code, and real-time editing.
Leverage Vue components in Slidev slides. Use this skill to add interactivity with built-in components or create custom ones.
| name | slidev-export |
| description | Export Slidev presentations to PDF, PPTX, and PNG. Use this skill for sharing, printing, and archiving presentations. |
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: