--- outline: deep --- # Exporting Usually the slides are displayed in a web browser, but you can also export them to PDF, PPTX, PNG, or Markdown files for sharing or printing. This feature is available through the CLI command [`slidev export`](../builtin/cli#export). However, interactive features in your slides may not be available in the exported files. You can build and host your slides as a web application to keep the interactivity. See [Building and Hosting](./hosting) for more information. ## The Browser Exporter Recommended {#browser} > Available since v0.50.0-beta.11 Slidev provides a UI in the browser for exporting your slides. You can access it by clicking the "Export" button in "More options" menu in the [navigation bar](./ui#navigation-bar), or go to `http://localhost:/export` directly. In the UI, you can export the slides as PDF, or capture the slides as images and download them as a PPTX or zip file. Editable PPTX is only available via the [CLI](#editable-pptx). Note that browsers other than **modern Chromium-based browsers** may not work well with the exporting UI. If you encounter any issues, please try use the CLI instead. > The following content of this page is for the CLI only. ## The CLI {#cli} Exporting to PDF, PPTX, or PNG relies on [Playwright](https://playwright.dev) for rendering the slides. Therefore [`playwright-chromium`](https://npmjs.com/package/playwright-chromium) is required to be installed in your project: ::: code-group ```bash [pnpm] $ pnpm add -D playwright-chromium ``` ```bash [npm] $ npm i -D playwright-chromium ``` ```bash [yarn] $ yarn add -D playwright-chromium ``` ```bash [bun] $ bun add -D playwright-chromium ``` ```bash [deno] $ deno add -D npm:playwright-chromium ``` ::: ## Formats ### PDF After installing `playwright-chromium` as described above, you can export your slides to PDF using the following command: ```bash $ slidev export ``` By default, the PDF will be placed at `./slides-export.pdf`. ### PPTX Slidev can also export your slides as a PPTX file: ```bash $ slidev export --format pptx ``` Note that all the slides in the PPTX file will be exported as images, so the text will not be selectable. Presenter notes will be conveyed into the PPTX file on a per-slide basis. In this mode, the `--with-clicks` option is enabled by default. To disable it, pass `--with-clicks false`. ### Editable PPTX If the recipient needs to edit the deck rather than only present it, export it with native shapes instead of pictures: ```bash $ slidev export --format pptx-editable ``` 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. What stays a picture: anything PowerPoint has no equivalent for. That includes SVG (so Mermaid diagrams and icons), ``, `