# Paper2Slides

> One command turns a paper or report into slides or a conference poster

- Category: AI Productivity & Writing / Slides & Deck Generation
- Language: Python
- Licence: MIT
- Repository: https://github.com/HKUDS/Paper2Slides
- Canonical page: https://ai-tldr.dev/tools/paper2slides/

## In short

Paper2Slides is a command-line tool that takes research papers, reports and other documents and produces presentation-ready slides or posters. It sits in the Slides & Deck Generation category of the AI Productivity & Writing tools and is open-source, written in Python and licensed MIT. To get started: clone and install.

## Overview

Paper2Slides is a command-line tool that takes research papers, reports and other documents and produces presentation-ready slides or posters. It accepts PDF, Word, Excel, PowerPoint and Markdown, and can process several files at once, so the input is whatever the work already exists as rather than a format you have to prepare first.

Content extraction is RAG-powered: rather than summarising from a single pass over the text, it indexes the document so figures, data points and specific claims can be pulled in, and it keeps traceability between generated slides and their source to limit drift from what the paper actually says. A `--fast` flag skips the RAG indexing step when a quick draft matters more than that precision.

Styling is either a built-in theme or a sentence of natural language — `--style academic` and `--style doraemon` ship with the project, and anything else you write in the `--style` argument is treated as a description to follow. Runs are checkpointed at each stage (rag, summary, plan, generate), so an interrupted job resumes by re-running the same command, and switching only the theme reuses the earlier stages instead of starting over.

## What it does

- Input PDF, Word, Excel, PowerPoint, Markdown and multiple files in one run
- RAG-powered extraction that keeps generated content traceable to the source document
- Output either `slides` or `poster`, with length (short/medium/long) or density (sparse/medium/dense) controls
- Built-in `academic` and `doraemon` themes, or a custom style described in plain language
- Checkpoint and resume across the rag → summary → plan → generate stages, including `--from-stage` restarts
- `--fast` mode that skips RAG indexing, and `--parallel N` for concurrent slide generation
- Web interface in addition to the CLI

## Getting started

Paper2Slides is a Python 3.12+ project run from a clone. API keys go in a .env file inside the paper2slides/ directory — see paper2slides/.env.example for the variables it expects.

1. Clone and install

```bash
git clone https://github.com/HKUDS/Paper2Slides.git
cd Paper2Slides
conda create -n paper2slides python=3.12 -y
conda activate paper2slides
pip install -r requirements.txt
```

2. Add your API keys

   Create a .env file in the paper2slides/ directory with the keys for your model provider, following paper2slides/.env.example.

3. Generate a deck

   Point --input at a file, choose slides or poster as --output, and set the length. The default style is doraemon and the default output type is poster.

```bash
python -m paper2slides --input paper.pdf --output slides --length medium
```

4. Style it, speed it up, resume it

   A custom style is just a sentence. --fast skips RAG indexing for a quicker draft, --parallel runs slide generation concurrently, and re-running an interrupted command auto-detects where it stopped.

```bash
# custom style + a poster
python -m paper2slides --input paper.pdf --output poster --style "minimalist with blue theme" --density medium

# fast draft, two workers
python -m paper2slides --input paper.pdf --output slides --style doraemon --length medium --fast --parallel 2

# see everything you have generated
python -m paper2slides --list
```

## When to use it

- Turn a paper you just finished into a conference talk deck without rebuilding every figure by hand
- Produce an academic poster from the same source document, with density tuned to the board size
- Generate several styled variants of one deck cheaply, reusing the cached rag and summary stages
- Summarise a stack of reports into slides for a review meeting, processing the files in one run
