## Quick CPU Demo
`git clone https://github.com/chaodreaming/layover-pdf`
`cd layover-pdf`
`pip install -r requirements.txt`
### 启动gradio服务
`python3 app.py`
#### 服务地址:
`http://localhost:9000/`
### 命令行参数方式
```
python main.py --input_pdf pdf_pat/img_path --api_key xxx --pages 100
```
### docker使用方式
```
docker build -t layover-pdf .
```
```
docker run -p 9000:9000 --gpus=all -it layover-pdf /bin/bash
```
### 更新日志
2025.3.18 新增支持img和打印log进度
2025.3.16上线PDF保留布局翻译功能,目前支持英译中
### Development Guide
TODO
# License Information
[LICENSE.md](https://github.com/chaodreaming/layover-pdf/blob/main/LICENSE)
This project currently uses PyMuPDF to achieve advanced functionality. However, since it adheres to the AGPL license, it may impose restrictions on certain usage scenarios. In future iterations, we plan to explore and replace it with a more permissive PDF processing library to enhance user-friendliness and flexibility.
# Acknowledgments
- [DocLayout-YOLO](https://github.com/opendatalab/DocLayout-YOLO)
- [PyMuPDF](https://github.com/pymupdf/PyMuPDF)
- [Noto Serif Simplified Chinese - Google Fonts](https://fonts.google.com/noto/specimen/Noto+Serif+SC)
# Star History