[Coco] [Color Computer] batch convert pdf to djvu

stinger30au stinger30au at yahoo.com.au
Mon May 18 05:47:26 EDT 2009


i didnt write this, but i tested it and it works


# !/bin/sh

for i in *.pdf ; do
j=`basename $i | sed -e 's/\.pdf//'`
pdf2djvu --dpi=400 -o $j.djvu $i
done



make sure pdf2djvu is installed first

sudo apt-get install pdf2djvu then run the script.
it will go thru the directory and convert all pdf files to djvu and keep the
same file name as the original.

*make sure there is no spaces in the file name* this script wont handle it




More information about the Coco mailing list