Skip to content

Instantly share code, notes, and snippets.

@dastanko
Created August 17, 2013 16:55
Show Gist options
  • Save dastanko/6257779 to your computer and use it in GitHub Desktop.
Save dastanko/6257779 to your computer and use it in GitHub Desktop.
bash:convertToPDF
#!/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