Skip to content

Latest commit

 

History

44 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Extracts title from pdf files

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages