Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

PowerPoint presentations as input

A .pptx file (and .pptm, .ppsx, .potx: the same format) is an input like a PDF or a Word document (kakemono convert talk.pptx -o talk.md); the format is recognised from the file’s bytes. The slides say what their text is, so the deck is read directly into the same structure, to read it as a document or to feed it to an AI:

  • each visible slide is a section headed by its title (from its title placeholder, else a large text box near its top, else “Slide N”); PowerPoint sections are headings above their slides’ titles; hidden slides are left out;
  • the first slide, when it is a title slide, gives the document’s title and front matter;
  • the rest of a slide comes in reading order, by where its shapes lie: bullets as lists at their levels, tables with their merged cells, pictures with their alternative text, charts drawn by kakemono and followed by a table of their data, SmartArt as a list, formulas as math;
  • footers, dates, slide numbers, the layout’s and master’s shapes, banners repeated on many slides and placeholder prompts (“Click to add title”) are left out;
  • speaker notes follow their slide, under a heading “Notes”, so a chunk of notes has the path “Slide title › Notes”.
kakemono convert talk.pptx -o talk.md        # Markdown, a section per slide
kakemono convert talk.pptx -o talk.jsonl     # chunks for retrieval (RAG), each under its slide's title
kakemono convert talk.pptx -o talk.pdf       # the visible slides as PowerPoint draws them, a page each

-o talk.pdf draws each visible slide as a page of the slide’s size, as PowerPoint draws it, without PowerPoint or LibreOffice: backgrounds, the master’s and layout’s shapes, outlines with their fills and lines, pictures, text laid out in its frame (insets, anchoring, autofit, bullets, vertical text), tables with their table style, charts and SmartArt. hard, hard-95 and medium show those pages (a picture of each slide; its text as real HTML text; its text reflowed); friendly is the deck as a document, the form every other output takes. Edited text (--content) reaches the flowing outputs, not the pages. Details: docs/POWERPOINT-INPUT.md.