Generate presentation-ready slides from research PDFs and related documents with LLM + RAG.
Paper2slides is a local workflow for turning papers, reports, and related source files into academic presentation decks. It parses PDF and document content, extracts figures and formulas, plans slide structure with an LLM, and exports both Beamer and native PPTX outputs.
- Parse PDF, DOCX, and TXT inputs
- Merge multiple source files into one workflow
- Extract text, figures, tables, and formulas from source documents
- Plan slide outlines and per-slide content with LLM assistance
- Export Beamer LaTeX, compiled PDF, PPTX, and optional slide preview images
- Support both CLI and Streamlit web UI
- Keep logs and intermediate outputs in local project folders
- Paper presentation slides
- Thesis defense decks
- Research group report slides
- Project pitch and internal technical briefings
pip install -r requirements.txtCreate a .env file in the project root:
APIYI_BASE_URL=your_openai_compatible_base_url
APIYI_API_KEY=your_api_key
LLM_MODEL=deepseek-chatstreamlit run streamlit_app.pypython run_agent.pyPaper2slides can generate:
.texBeamer source.pdfcompiled slide deck.pptxnative PowerPoint file- optional exported slide preview images
.
|- streamlit_app.py
|- run_agent.py
|- ppt_agent/
|- tests/
|- figures/
`- output/
- Python
- Streamlit
- LangChain / LangGraph
- OpenAI-compatible APIs
- PyMuPDF / pdfplumber / pypdf
- python-pptx / python-docx / reportlab
The current repository already includes the core parsing, planning, export, and local UI workflow. It is suitable as a working local tool and can be extended further with custom templates, prompt strategies, and output styles.
