| Crates.io | pdf-renamer-ai |
| lib.rs | pdf-renamer-ai |
| version | 0.1.0 |
| created_at | 2025-07-16 15:30:35.820285+00 |
| updated_at | 2025-07-16 15:30:35.820285+00 |
| description | Intelligently rename PDF files using local LLMs. Supports multiple languages, automatic translation, and meaningful name generation. |
| homepage | https://github.com/RustSandbox/pdf_renamer |
| repository | https://github.com/RustSandbox/pdf_renamer |
| max_upload_size | |
| id | 1755669 |
| size | 73,013 |
A Rust CLI tool that automatically renames PDF files with meaningful, concise names using local LLMs via Ollama. Perfect for organizing documents with non-English filenames or long, complex names.
# Clone and build
git clone https://github.com/RustSandbox/pdf_renamer.git
cd pdf_renamer
cargo build --release
# Run the demo
./demo.sh
# Or use directly
./target/release/pdf-renamer /path/to/pdfs
cargo install pdf-renamer-ai
This will install the pdf-renamer command globally.
git clone https://github.com/RustSandbox/pdf_renamer.git
cd pdf_renamer
cargo build --release
The binary will be available at target/release/pdf-renamer.
cargo install --path .
# Dry run - see what would be renamed
pdf-renamer /path/to/pdf/folder
# Actually rename files
pdf-renamer --rename /path/to/pdf/folder
# Use a specific model (default: qwen3:latest)
pdf-renamer --model command-r7b:latest /path/to/pdfs
# Available models:
# - command-r7b:latest (recommended - best results)
# - qwen3:latest (default)
# - deepseek-r1:latest
# - gemma3n:e4b
# - mistral-nemo:latest
USAGE:
pdf-renamer [OPTIONS] <FOLDER_PATH>
ARGS:
<FOLDER_PATH> Path to the folder containing PDF files
OPTIONS:
-r, --rename Actually rename the files (dry run by default)
-m, --model <MODEL> Ollama model to use [default: qwen3:latest]
-h, --help Print help information
Setup Phase:
Processing Phase:
Safety Features:
Ų
ØĩØą_Ų
Ų_ŲØ§ØĩØą_ØĨŲŲ_ØØąØ¨_ØŖŲØĒŲØ¨Øą.pdf
ããããįžåŽä¸ģįžŠč
ãŽãããŽéåčĢ.pdf
Introduction_to_Machine_Learning_2024_Edition.pdf
egyptwar.pdf
quantumphy.pdf
mlintro24.pdf
The tool automatically handles Ollama installation and configuration:
pdf_renamer/
âââ src/
â âââ main.rs # CLI and main logic
â âââ ollama.rs # Ollama API client
â âââ setup.rs # Ollama setup automation
âââ Cargo.toml
âââ README.md
cargo test
cargo build --release
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)This project is licensed under a custom license that requires attribution for commercial use - see the LICENSE file for details.
Key points:
Created by Hamzeh Ghalebi (ghalebi@gmail.com)
curl installedollama pull model-nameIf you encounter any issues or have questions, please: