Skip to main content
Back

OpenDCAI's Paper2Any Turns Research PDFs Into Editable Slides and Diagrams

Paper2Any is an open-source Python toolkit that turns research PDFs, screenshots, or plain text into editable PPTX slides, scientific figures, draw.io diagrams, and academic posters in one click.

Pro

Repo, Full Access
  • What it is: Paper2Any is an open-source toolkit that converts research PDFs, text, or screenshots into editable PPTX, SVG, and draw.io files.
  • 12 sub-tools: Covers Paper2Figure, Paper2PPT, PDF2PPT, Paper2Poster, Paper2Citation, Paper2Rebuttal, PPTPolish, and more.
  • Architecture: Built on LangGraph agents, FastAPI backend, React frontend, with MinerU and SAM3 for PDF parsing and image segmentation.
  • Model-agnostic: Supports GPT-4o, Qwen-VL, Gemini, and any OpenAI-compatible API endpoint via config.
  • Self-hostable via Docker: One-command Docker deploy; Apache 2.0 license allows commercial use.
  • Online demo available at dcai-paper2any.nas.cpolar.cn; a commercial Studio version is being rolled out separately.

Paper2Any is an open-source toolkit from OpenDCAI that automates one of the most tedious parts of academic work: turning a research paper into presentation-ready visuals. Drop in a PDF, a screenshot, or even a plain-text description, and the system generates editable PowerPoint slides, model architecture diagrams, technical roadmaps, draw.io flowcharts, and academic posters. Everything comes out as a native, editable file, not a static image you have to redraw from scratch.

Paper2Any platform interface showing the four main AI tools

The problem it actually solves

Anyone who has tried to recreate a model architecture diagram from a paper knows the pain: you read the methods section, open PowerPoint or Inkscape, and spend an hour manually placing boxes and arrows. Paper2Any addresses the challenge of transforming research papers, text, or topics into editable visual assets like figures, technical diagrams, and presentation slides. The key word is editable. The outputs are .pptx and .svg files you can open and modify, not screenshots.

The project employs AI-powered multimodal workflows to process inputs such as PDF documents, screenshots, or plain text, leveraging specialized agents and toolkits to generate editable outputs including scientific figures, presentation slides, and video scripts.

What's inside the toolkit

From paper PDFs, images, or text, the system generates editable scientific figures, slide decks, video scripts, academic posters, and other multimodal content in one click. The toolkit is split into focused sub-tools:

  • Paper2Figure: generates model architecture diagrams, technical roadmaps (PPT + SVG), and experimental plots with editable PPTX output.
  • Paper2PPT: converts paper/text/topic to PPT with long-doc support and built-in table/figure extraction.
  • Paper2Diagram / Image2Drawio: generates draw.io diagrams from paper/text or images, with drawio/png/svg export and chat-based edits.
  • PDF2PPT: offers layout-preserving conversion of PDFs into editable PPTX files.
  • Paper2Poster: turns paper PDFs into poster-ready layouts with configurable sections, logos, and export assets.
  • Paper2Citation: tracks citing authors, institutions, and notable downstream works from author names or DOI/paper URLs.
  • Paper2Rebuttal: drafts structured reviewer rebuttals with claims-to-evidence grounding.
  • PPTPolish: applies AI-based layout optimization and style transfer to existing decks.
  • Knowledge Base (KB): ingests and embeds documents for semantic search and KB-driven PPT, podcast, and mindmap generation.

How it's built under the hood

Paper2Any converts papers, text, or topics into editable research figures, technical route diagrams, and presentation slides using LangGraph agents. LangGraph is a graph-based orchestration framework where each step in a workflow is a node, and edges define how data flows between them. It represents workflows as a network of interconnected nodes, each corresponding to a specific function or sub-task, with edges capturing logical and semantic relationships between them. This gives Paper2Any the ability to run multi-step pipelines, like parsing a PDF, extracting figures, summarizing sections, and generating PPTX, as a single coherent agent run rather than a chain of disconnected scripts.

For PDF parsing and layout extraction, the system integrates MinerU (a document layout model, specifically MinerU2.5-2509-1.2B) and SAM3 (Segment Anything Model 3) for intelligent image cutout and element segmentation. The backend is a FastAPI service, the frontend is a React/TypeScript app, and the whole stack can be stood up with Docker. Dynamic model selection is supported via API parameters (e.g., GPT-4o, Qwen-VL), eliminating hardcoded model dependencies.

Paper2Any interface showing PDF to PPTX conversion with model architecture diagram generation

Getting it running

The fastest path is Docker. Clone the repo, copy the example env files, drop in your LLM API key, and run one command:

git clone https://github.com/OpenDCAI/Paper2Any.git
cd Paper2Any
cp fastapi_app/.env.simple.example fastapi_app/.env
cp frontend-workflow/.env.simple.example frontend-workflow/.env
bash deploy/docker-up.sh

The frontend lands on http://localhost:3000 and the backend health endpoint is at http://localhost:8000/health. For local installs, Python 3.11+ is required on Linux (3.12 on Windows), and a handful of system tools need to be present:

  • ffmpeg, inkscape, libreoffice, poppler-utils, wkhtmltopdf for rendering and conversion
  • tectonic (LaTeX engine) via conda for figure rendering
  • SAM3 segmentation service (optional, needed only for PDF2PPT and Image2PPT)

There is also a hosted online demo if you want to try it before self-hosting. The project is licensed under Apache 2.0, so commercial use is permitted. The repository remains the open-source Paper2Any codebase and does not include the full commercial Studio implementation. A newer Paper2Any Studio experience with team workspaces and credits management is being rolled out separately.

CLI for scripting and automation

If you want to integrate Paper2Any into a pipeline rather than use the web UI, every major workflow has a CLI script. For example, generating a model architecture diagram from a PDF is a single command:

python script/run_paper2figure_cli.py \
  --input paper.pdf \
  --graph-type model_arch \
  --api-key sk-xxx

The three graph types are model_arch (architecture diagrams), tech_route (technical roadmaps), and exp_data (experimental plots). Similar CLI scripts exist for Paper2PPT, PDF2PPT, Image2PPT, and PPTPolish, all accepting --api-url, --model, and --output-dir flags.

What it's good at, and where it falls short

The strongest workflows are the ones that have reached 85-90% completion on the roadmap: PDF2PPT, Paper2Figure, and Image2PPT. These benefit from the SAM3 segmentation pipeline and produce genuinely usable outputs. Paper2PPT supports long documents with 40+ slides, intelligent table extraction, and version history.

The weaker spots are the newer additions. Paper2Video is only at 40% completion, with script and narration generation still in progress. PPTPolish's layout optimization is also marked as in-progress. The setup complexity is real: between MinerU, SAM3, LaTeX rendering, and system packages, getting the full feature set running locally takes effort. Native Windows installation is noted as less recommended than Linux/WSL.

The model-agnostic design is a genuine strength. You can point it at OpenAI, a local Ollama endpoint, Qwen-VL, Gemini, or any OpenAI-compatible gateway. For teams already running their own inference infrastructure, this means no vendor lock-in and no per-call API costs beyond what you're already paying.