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
)
ruby extract-isbn.rb -r dir
You can specify -r
options to look for files recursively
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
Script requires lisbn
gem to be installed
gem install --user lisbn