Created
August 17, 2013 16:55
-
-
Save dastanko/6257779 to your computer and use it in GitHub Desktop.
bash:convertToPDF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# convert DjVu -> PDF | |
# usage: djvu2pdf.sh <file.djvu> | |
# depends on ddjvulibre package, To install package run `sudo apt-get install ddjvulibre` | |
i="$1" | |
echo "------------ converting $i to PDF ----------------"; | |
o="`basename $i .djvu`" | |
o="$o".pdf | |
echo "[ writing output to $o ] " | |
ddjvu -format=pdf -quality=85 -verbose "$i" "$o" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment