A simple Rust CLI tool to rename PDF files based on their metadata or content. Supports CamelCase and snake_case naming strategies with optional title length limits.
- Rename a single PDF or all PDFs in a directory
- Supports CamelCase and snake_case
- Optional maximum length for the new title
- Automatically falls back to PDF content if metadata title is missing
- Clone the repository:
git clone <your-repo-url>
cd pdf_renamer- Build the release binary:
cargo build --release- Move or symlink the binary to a folder in your
$PATH:
# Move to /usr/local/bin
sudo mv target/release/pdf-renamer-rs /usr/local/bin/
# OR create a symlink in ~/.local/bin
mkdir -p ~/.local/bin
ln -s $(pwd)/target/release/pdf-renamer-rs ~/.local/bin/pdf-renamerpdf_renamer --path <file-or-directory> --strategy <camel-case|snake-case> [--max-len <length>]MIT