You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/builtin/cli.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ Export slides to PDF (or other format). See <LinkInline link="guide/exporting" /
70
70
Options:
71
71
72
72
-`--output` (`string`, default: use `exportFilename` (see https://sli.dev/custom/#frontmatter-configures) or use `[entry]-export`): path to the output.
-`--format` (`'pdf', 'png', 'pptx', 'pptx-editable', 'md'`, default: `'pdf'`): output format. `pptx` exports each slide as an image; `pptx-editable` rebuilds them as native PowerPoint shapes with selectable text.
74
74
-`--timeout` (`number`, default: `30000`): timeout for rendering the print page (see https://playwright.dev/docs/api/class-page#page-goto).
75
75
-`--range` (`string`): page ranges to export (example: `'1,4-5,6'`).
76
76
-`--dark` (`boolean`, default: `false`): export as dark theme.
Copy file name to clipboardExpand all lines: docs/guide/exporting.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,28 @@ Note that all the slides in the PPTX file will be exported as images, so the tex
72
72
73
73
In this mode, the `--with-clicks` option is enabled by default. To disable it, pass `--with-clicks false`.
74
74
75
+
### Editable PPTX
76
+
77
+
If the recipient needs to edit the deck rather than only present it, export it with native shapes instead of pictures:
78
+
79
+
```bash
80
+
$ slidev export --format pptx-editable
81
+
```
82
+
83
+
The slides are measured in the browser and rebuilt as PowerPoint shapes, so text is selectable and editable, boxes can be moved and recolored, and presenter notes are carried over as usual. This does not replace `--format pptx`, which stays the most visually faithful option.
84
+
85
+
What stays a picture: anything PowerPoint has no equivalent for. That includes SVG (so Mermaid diagrams and icons), `<canvas>`, `<iframe>`, videos, KaTeX formulas, CSS gradients, `filter`, `backdrop-filter`, `mix-blend-mode` and `clip-path`. Only the element concerned becomes a picture, not the whole slide.
86
+
87
+
If a slide cannot be rebuilt safely, or ends up mostly pictures anyway, it falls back to the same image export used by `--format pptx`, for that slide alone, and the reason is printed.
88
+
89
+
Worth knowing before you send the file on:
90
+
91
+
- A `.pptx` names fonts, it does not embed them. The export prints which font families it referenced; recipients need those installed or PowerPoint will substitute.
92
+
- PowerPoint does not measure text exactly as a browser does, so a long paragraph may wrap onto a different number of lines.
93
+
- Decorations a theme draws with `::before` or `::after` in normal flow are left out, and the export lists them. Code block line numbers are one of these: they come from a CSS counter, which has no text and no box that a computed style can report.
94
+
95
+
Like `--format pptx`, this exports one slide per click step unless you pass `--with-clicks false`. `--per-slide` is not supported with it.
96
+
75
97
### PNGs and Markdown
76
98
77
99
When passing in the `--format png` option, Slidev will export PNG images for each slide instead of a PDF:
0 commit comments