Paper2Slides:一条命令,论文/报告/文档转换为PPT或posters
什么是 Paper2Slides?
对于以下DeepSeek-V3.2论文
Paper2Slides通过以下一行命令,
# 一行命令生成PPT
python -m paper2slides --input paper.pdf --output slides --style doraemon --length medium --fast --parallel 2
生成以下“专业”PPT,展示3种style:
机器猫style
academic style
custom style
快速使用Paper2Slides
环境搭建
# Clone repository
git clone https://github.com/HKUDS/Paper2Slides.git
cd Paper2Slides
# Create and activate conda environment
conda create -n paper2slides python=3.12 -y
conda activate paper2slides
# Install dependencies
pip install -r requirements.txt
在目录中创建一个包含 API 密钥的.env文件。请参考文档了解所需的变量。paper2slides/``paper2slides/.env.example
命令行使用Paper2Slides
# Basic usage - generate slides from a paper
python -m paper2slides --input paper.pdf --output slides --length medium
# Generate poster with custom style
python -m paper2slides --input paper.pdf --output poster --style "minimalist with blue theme" --density medium
# Fast mode
python -m paper2slides --input paper.pdf --output slides --fast
# Enable parallel generation (2 workers by default)
python -m paper2slides --input paper.pdf --output slides --parallel 2
# List all processed outputs
python -m paper2slides --list
Web界面使用Paper2Slides
./scripts/start.s
访问网页界面http://localhost:5173(默认)
进一步学习:https://github.com/HKUDS/Paper2Slides