Skip to main content

A tool for renaming a batch of pdf files

Project description

MIT license, Xavier Olive 2017

The addressed use case comes the frustration caused by opening tons of pdf files (mainly scientific publications) in order to copy-paste the title and rename the file accordingly.

The proposed workflow goes as follow:

$ pdfrename *.pdf
Rename '/home/xo/Downloads/1606.04838.pdf' to '/home/xo/Downloads/Optimization Methods for Large-Scale Machine Learning.pdf'? [y/n/j/s/a] >
Choose among y(es)/n(o)/j(oin)/s(kip)/a(bort) > y
The script first searches the metadata, then parses each line of the first page of the file to suggest it as a file name.
Use j(oin) to merge the current suggestion with next line (for papers with a two-line title).

Installation

Latest release:

pip install pdfrename
Try pip install --user pdfrename if need be.
The executable will be installed in a directory with read/write access.
Check the directory (which depends on your Python installation) is in your PATH variable.
Try /usr/local/bin, $HOME/.local/bin, …

From source:

pip install git+https://github.com/xoolive/pdfrename

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pdfrename-0.1-py2-none-any.whl (4.9 kB view details)

Uploaded Python 2

File details

Details for the file pdfrename-0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for pdfrename-0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 074c20e39aabf48b27558086f6969b82bfbb8c8da914420514bf7b2f932b64c0
MD5 2af2c6e81a1743a588b2f5995103ef0f
BLAKE2b-256 91225ef03870f71794b9b8a083f805b57d5d150cf965f6f83196748be181ab0b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page