Skip to content

gagan405/pdf-renamer-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Renamer CLI

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.


Features

  • 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

Installation

  1. Clone the repository:
git clone <your-repo-url>
cd pdf_renamer
  1. Build the release binary:
cargo build --release
  1. 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-renamer

Usage

pdf_renamer --path <file-or-directory> --strategy <camel-case|snake-case> [--max-len <length>]

LICENSE

MIT

Releases

Packages

Contributors

Languages