Skip to content

Extract ISBN from PDF/EPUB files using pdftotext utility

License

Notifications You must be signed in to change notification settings

skyme5/extract-isbn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

extract-isbn.rb - Extract ISBN from PDF/EPUB

Javascript Rubocop GITHUB License: MIT Buy Me A Coffee

Extract ISBN from PDF/EPUB files using pdftotext utility

This will try to look for possible match from first and last few pages of the book and metadata. If a match is found and validated, the ISBN will be appended to the filename (%filename_[ISBN].%ext)

USAGE

 ruby extract-isbn.rb -r dir

You can specify -r options to look for files recursively

Requirements

Behind the scenes this package leverages pdftotext. You can verify if the binary installed on your system by issueing this command:

which pdftotext

If it is installed it will return the path to the binary.

To install the binary you can use this command on Ubuntu or Debian:

apt-get install poppler-utils

On a mac you can install the binary using brew

brew install poppler

If you're on RedHat or CentOS use this:

yum install poppler-utils

Ruby dependency

Script requires lisbn gem to be installed

gem install --user lisbn

About

Extract ISBN from PDF/EPUB files using pdftotext utility

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages