A simple renamer for PDF Files.
preview.mp4
$ python3 main.py -h
usage: py-pdf-renamer [-h] [-r] targets [targets ...]
renames pdf file(s) to the first line of text in the pdf file. if a directory is specified, all PDF file names in that directory are replaced.
positional arguments:
targets target pdf file(s) or directory(directories)
options:
-h, --help show this help message and exit
-r, --recursive rename recursively. valid only if directories are specified.
dependency | version |
---|---|
Python |
3.11.7 |
pdfminer.six |
20231228 |
๐ For more details, see requirements.txt.
- clone this repository
- run
python3 -m pip -r requirements.txt
- run
. .venv/bin/activate
- run
python3 main.py
๐ This project is under the MIT License, see LICENSE.txt for more details.