经 AI Skill Hub 精选评估,autorename-pdf — AI 办公提效工具中文文档 获评「推荐使用」。这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.6 分,适合有一定技术背景的用户使用。
autorename-pdf — AI 办公提效工具中文文档 是一款基于 Python 开发的开源工具,专注于 ai、artificial-intelligence、business 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
autorename-pdf — AI 办公提效工具中文文档 是一款基于 Python 开发的开源工具,专注于 ai、artificial-intelligence、business 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install autorename-pdf
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install autorename-pdf
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/ptmrio/autorename-pdf
cd autorename-pdf
pip install -e .
# 验证安装
python -c "import autorename_pdf; print('安装成功')"
# 命令行使用
autorename-pdf --help
# 基本用法
autorename-pdf input_file -o output_file
# Python 代码中调用
import autorename_pdf
# 示例
result = autorename_pdf.process("input")
print(result)
# autorename-pdf 配置文件示例(config.yml) app: name: "autorename-pdf" debug: false log_level: "INFO" # 运行时指定配置文件 autorename-pdf --config config.yml # 或通过环境变量配置 export AUTORENAME_PDF_API_KEY="your-key" export AUTORENAME_PDF_OUTPUT_DIR="./output"
Automatically rename PDF files using AI and OCR.
Extracts company names, dates, and document types from any PDF — renames to YYYYMMDD COMPANY DOCTYPE.pdf.

There are two ways to configure your API key:
Method 1 — Directly in config.yaml (simple, portable):
ai:
api_key: "sk-your-actual-key-here"
Method 2 — Via environment variable (secure, easy to switch providers):
ai:
api_key: "${OPENAI_API_KEY}"
Then create a .env file next to your config.yaml:
OPENAI_API_KEY=sk-your-actual-key-here
ANTHROPIC_API_KEY=sk-ant-your-key-here
The ${VAR_NAME} syntax works in any string value in config.yaml. A .env file placed next to config.yaml is loaded automatically.
Tip: Method 2 lets you store all your API keys in.envand switch providers inconfig.yamlby just changing the${VAR_NAME}reference. See.env.examplefor a template.
Text extraction (pdfplumber) always runs — it's free and instant. OCR and vision are independent add-ons you enable based on your needs.
PaddleOCR runs locally for free, cloud AI handles smart extraction. Great for mixed document types.
ai:
provider: "openai" # or anthropic, gemini, xai
model: "gpt-5.4"
api_key: "your-api-key"
pdf:
ocr: true # PaddleOCR enhances scanned docs
vision: false # not needed — OCR covers it
Cost: ~$0.001/PDF. Requires: API key + PaddleOCR (~500 MB, installed via setup.ps1).
No PaddleOCR needed — the LLM reads page images directly. Best for laptops or low-performance machines.
ai:
provider: "gemini" # or openai, anthropic, xai
model: "gemini-3.1-flash-lite"
api_key: "your-api-key"
pdf:
ocr: false
vision: true # send page images to LLM
Cost: ~$0.002/PDF. Requires: API key + vision-capable model.
Everything runs on your machine. No data leaves your computer, no API keys, no cost.
ai:
provider: "ollama"
model: "qwen3:4b" # fast, fits in 3 GB VRAM
api_key: ""
pdf:
ocr: true # PaddleOCR for scanned docs
vision: false # text models are faster
Cost: Free. Requires: Ollama + PaddleOCR.
Prerequisites: Python 3.11+, Git
```bash git clone https://github.com/ptmrio/autorename-pdf.git cd autorename-pdf python -m venv venv source venv/bin/activate # Linux/macOS
python build.py # Build everything, sign all
python build.py --nosign # Build everything, skip signing
python build.py --cli-only # Build CLI EXE only (skip GUI + packaging)
Build pipeline: CLI EXE (PyInstaller) → Sign (Azure Trusted Signing) → Tauri GUI → Portable ZIP
Output (in Releases/): AutoRename-PDF-Portable-{version}.zip
1. Download the latest release ZIP 2. Extract and run setup.ps1 (right-click → "Run with PowerShell") 3. Configure — edit config.yaml with your AI provider and API key:
ai:
provider: "openai" # or anthropic, gemini, xai, ollama
api_key: "your-key"
4. Launch autorename-pdf-gui.exe — or right-click any PDF in Explorer
setup.ps1createsconfig.yamlfrom the template, adds context menu entries, and optionally installs PaddleOCR for offline OCR of scanned documents.
| Setting | Values | Description |
|---|---|---|
pdf.ocr | false / true / "auto" | PaddleOCR for scanned PDFs |
pdf.vision | false / true / "auto" | Send page images to LLM |
pdf.text_quality_threshold | 0.0 – 1.0 | Triggers OCR/vision in "auto" mode (default: 0.3) |
pdf.max_pages | integer | Max pages to process per PDF (default: 3) |
false = disabled (default for both)true = always run alongside text extraction"auto" = run only when text quality falls below thresholdAll enabled sources are combined before sending to the AI — maximizing extraction accuracy.
cp config.yaml.example config.yaml
pip install -r requirements.txt pip install -r requirements-dev.txt # for testing cp config.yaml.example config.yaml ```
autorename-pdf-cli.exe rename --output json "C:\path\to\folder" ```
<details> <summary><strong>Full CLI Reference</strong></summary>
| Subcommand | Description |
|---|---|
rename | Rename PDF files (default if omitted) |
undo | Reverse file renames using the undo log |
config show | Display current configuration (API keys redacted) |
config validate | Validate configuration and report issues |
| Flag | Description |
|---|---|
--dry-run | Show what would be renamed without doing it |
--recursive, -r | Process folders recursively |
--provider | Override AI provider from config |
--model | Override model from config |
--vision | Enable vision (send page images to LLM) |
--ocr | Enable PaddleOCR |
--text-only | Disable OCR and vision (text extraction only) |
--output, -o | Output format: text or json (default: auto-detect) |
--quiet, -q | Suppress non-essential output |
--verbose, -v | Show detailed processing info |
| Flag | Description |
|---|---|
--list | List available undo batches without undoing |
--batch <id> | Undo a specific batch by ID |
--all | Undo all batches (not just the last one) |
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Usage error |
| 3 | Configuration error |
| 4 | No files found |
| 5 | Partial failure (some files failed) |
| 10 | AI provider error |
| 11 | Authentication error |
</details>
Does it work offline? Yes. Use Ollama (free, local AI) + PaddleOCR. No data leaves your machine, no API key needed. See Ollama Setup.
What types of PDFs does it handle? Any PDF: text-based (digital), scanned (OCR), or image-only (vision). All three extraction methods can run together.
How much does it cost? The tool is free and open source. Cloud AI providers charge ~$0.001 per PDF. Ollama is completely free.
Does it work on macOS or Linux? The CLI works cross-platform via Python. The GUI and context menu are Windows-only. See macOS / Linux.
<details> <summary><strong>Table of Contents</strong></summary>
</details>
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:autorename-pdf — AI 办公提效工具中文文档 的核心功能完整,质量良好。对于AI 技术爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | autorename-pdf |
| 原始描述 | autorename-pdf is a highly efficient tool designed to automatically rename and archive PDF documents based on their content. |
| Topics | aiartificial-intelligencebusinessfile-organizationfile-organization-toolfile-organizeroffice |
| GitHub | https://github.com/ptmrio/autorename-pdf |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-22 · 更新时间:2026-05-22 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。