Skip to content

cibinjoseph/getpdftitle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

getpdftitle

getpdftitle extracts the title from pdf files. The extracted title is redirected to stdout.
When an explicit file name is not specified, the title from all pdf documents in the current directory is extracted and output as a list. For pdf files that do not contain title in metadata, the pdf is converted to txt file and the first non-empty line is extracted.

Usage

getpdftitle [-h] [-n] [-s] [filename [filename ...]]

positional arguments: filename Extracts title from file.pdf. Extracts from all pdf files in the
current directory if a filename is not specified

optional arguments:
-h, --help show this help message and exit
-n, --name Include filename in output
-s, --stat Show statistics of files parsed

Requirements

sudo pip install pdfrw
sudo pip install argparse

Author

Cibin Joseph (cibinjoseph92@gmail.com).

License

MIT License See LICENSE for full text.

Releases

No releases published

Packages

No packages published

Languages