Skip to content

Export reference

New to exporting? Export to PDF, PNG and PPTX walks through it step by step. This page is the complete reference.

There are two ways to export. kadal-deck export runs a real browser (Playwright) against the built deck, so what you get is what the audience saw. The /export page does the same in the browser you are using, with nothing to install, on any deck, a published one too.

Terminal window
npx kadal-deck export # PDF into export/ (builds and previews the deck itself)
npx kadal-deck export --png --pptx # also one PNG per slide, and a PPTX with your notes attached
npx kadal-deck export --format pptx-editable # a PowerPoint file you can edit
npx kadal-deck export --format md # export/<name>.md and export/png/: the slides with their notes
npx kadal-deck export --range 1,3-5 --dark # some slides, in the dark scheme
npx kadal-deck export --png --omit-background # transparent PNGs
npx kadal-deck export --url http://localhost:5173/ # use a running dev server instead of building
Terminal window
pnpm exec kadal-deck export # PDF into export/ (builds and previews the deck itself)
pnpm exec kadal-deck export --png --pptx # also one PNG per slide, and a PPTX with your notes attached
pnpm exec kadal-deck export --format pptx-editable # a PowerPoint file you can edit
pnpm exec kadal-deck export --format md # export/<name>.md and export/png/: the slides with their notes
pnpm exec kadal-deck export --range 1,3-5 --dark # some slides, in the dark scheme
pnpm exec kadal-deck export --png --omit-background # transparent PNGs
pnpm exec kadal-deck export --url http://localhost:5173/ # use a running dev server instead of building
Terminal window
yarn kadal-deck export # PDF into export/ (builds and previews the deck itself)
yarn kadal-deck export --png --pptx # also one PNG per slide, and a PPTX with your notes attached
yarn kadal-deck export --format pptx-editable # a PowerPoint file you can edit
yarn kadal-deck export --format md # export/<name>.md and export/png/: the slides with their notes
yarn kadal-deck export --range 1,3-5 --dark # some slides, in the dark scheme
yarn kadal-deck export --png --omit-background # transparent PNGs
yarn kadal-deck export --url http://localhost:5173/ # use a running dev server instead of building
Terminal window
bunx kadal-deck export # PDF into export/ (builds and previews the deck itself)
bunx kadal-deck export --png --pptx # also one PNG per slide, and a PPTX with your notes attached
bunx kadal-deck export --format pptx-editable # a PowerPoint file you can edit
bunx kadal-deck export --format md # export/<name>.md and export/png/: the slides with their notes
bunx kadal-deck export --range 1,3-5 --dark # some slides, in the dark scheme
bunx kadal-deck export --png --omit-background # transparent PNGs
bunx kadal-deck export --url http://localhost:5173/ # use a running dev server instead of building

playwright is an optional peer of the engine, so a deck that never exports never downloads a browser. Install it in the deck once: npm i -D playwright && npx playwright install chromiumpnpm add -D playwright && pnpm dlx playwright install chromiumyarn add -D playwright && yarn dlx playwright install chromiumbun add -D playwright && bunx playwright install chromium.

Format Flag What you get
PDF (the default; --no-pdf skips it) <name>.pdf, one page per slide or per click step, with bookmarks
PNG --png png/, one picture per page
PPTX --pptx a PowerPoint file, one picture per slide, the notes attached
Editable PPTX --pptx-editable, or --format pptx-editable <name>.editable.pptx, rebuilt as PowerPoint text, lists, shapes and tables
Markdown --md, or --format md <name>.md and png/: a picture of every page with its slide’s notes

--format pdf,png,pptx names several at once. <name> is the deck folder’s name unless --output gives another.

The PDF is a picture of each slide with its text printed over it as real text, so it looks the same in Preview, Acrobat, Chrome and Poppler and stays searchable. It carries bookmarks (each slide’s title at its first page, vertical stacks and levels nested, hideInToc slides left out) and the deck’s title, author, info and keywords. --no-with-toc leaves the bookmarks out; --vector-pdf prints with the browser alone.

The editable PowerPoint measures every slide in the browser and rebuilds it: text boxes with their runs (font, size, colour, bold, italic, underline, strike, links, letter spacing), lists with real bullets and levels, rectangles and ellipses with their fill, border and shadow, pictures as the original files, tables as tables, and code as coloured monospace text. What PowerPoint cannot draw (SVG, canvas, maths, diagrams, embedded pages, gradients, filters) is photographed where it stands, so nothing goes missing. The notes are attached. On an element, data-export="image" photographs it whole and data-export="skip" leaves it out. A .pptx names its fonts without carrying them, so the export lists the families the people you send it to need.

Option Meaning
--range 1,3-5 only these slides (1-based, in play order; 8- runs to the end)
--dark, --scheme light|dark the colour scheme
--with-clicks, --no-with-clicks a page per click step, or one per slide (default: the deck’s pdfSeparateFragments)
--omit-background no page colour and no background layer
--per-slide load each slide on its own: slower, for very large decks
--out <dir>, --output <name> where to write (default export/) and the files’ base name
--no-pdf no PDF (one is written whenever --format is not given)
--vector-pdf print the PDF with the browser alone: all vector, but effects vary by viewer
--no-with-toc leave the PDF’s bookmarks out
--scale <n> the scale the slides are captured at (default 2: 3840 × 2160 PNGs)
--timeout <ms>, --wait <ms> how long a page may take, and an extra wait before capture
--wait-until networkidle|load|domcontentloaded|none when a page counts as loaded
--executable-path <chrome> use this Chrome or Chromium instead of Playwright’s
--url <url>, --port <n> export a deck that is already running; the port for the preview server
--posters, --refresh-posters, --no-posters posters for embedded pages (below)
--json one JSON object on stdout, for scripts

Deck options that shape the pages: pdfSeparateFragments (a page per step, default on), pdfMaxPagesPerSlide and showNotes. Saved drawings print with their slides.

Every deck has an export page at /export beside it (https://decks.kadal.cc/@you/talk/export for a published one). It makes a PDF through the browser’s print dialog, a zip of PNGs, an image-per-slide PowerPoint file with the notes, or Markdown with the pictures. Pick the range, click steps, colour scheme, notes, picture size and a transparent background, and watch a live preview; long exports show their progress and can be cancelled. The right-click menu on any slide has Export too.

download: true in the headmatter puts a Download button beside the theme menu:

---
title: My talk
download: true
---

kadal-deck build then prints dist/deck.pdf for it (kadal-deck build --download does the same without the key; --no-download skips it). Without a PDF beside the deck the button opens /export instead. download: talk.pdf, or a URL, links that file.

On deck.kadal.cc the Download button is a paid-plan feature: on the Free plan it never shows, whatever the deck says; on Starter, Pro and Team it shows when the deck asks for one, and opens the deck’s /export page. See Pricing. A host of your own decides the same way through window.__KADAL_DECK__.download (false, true or a URL).

A web page embedded with layout: iframe* or <Iframe> can’t be live in a PDF, the overview, the presenter’s next-slide box or the scroll view. A poster stands in, in this order:

  1. poster: shots/map.jpg on the slide (or <Iframe poster>);
  2. else the screenshot export captures for that URL at the pane’s size, into public/posters/;
  3. else a card with the address.

posterUrl: photographs a different address than the one embedded (the same page in a state its URL doesn’t carry), and posterWait: gives it longer than the default five seconds to settle. Posters are captured before every export, so they ship with the build; commit them. --posters only captures them and stops, --refresh-posters captures them again even where one exists, and --no-posters skips them. <Youtube>, <Tweet> and <BlueSky> get posters the same way.

/?print-pdf lays every slide out as a page. On screen the pages are zoomed to the window; the browser’s print dialog gets them at full size. Query parameters narrow it, the same ones every exporter passes:

Parameter Meaning
&range=1,3-5 only those slides
&clicks=0 or 1 one page per slide, or a page per click step
&notes=0, 1 or page no notes, notes in a box on each slide, or on pages of their own
&omit-background no page colour and no background layer
&scheme=dark the dark scheme, without changing the viewer’s own choice

Send feedback