Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have about 200 .djvu ebooks which I want to convert into .pdf. Since one-by-one conversion is tiresome I want to know if there is a way to convert them all at once. Any help will be appreciated.

share|improve this question
possible duplicate of Converting DJVU to PDF – qbi Feb 28 '13 at 10:18
@qbi Where does it tell how to convert multiple djvu files? – mikewhatever Feb 28 '13 at 12:49
my question is about BULK conversion! – kernel_panic Feb 28 '13 at 14:23
@mikewhatever, This is basically combination of two questions: and a variation of question like Also the first question already includes a lot of information, which would be replicated here. – ignite Feb 28 '13 at 15:10
up vote 9 down vote accepted

You could use ddjvu, in a shell script. That said, the output PDFs are much larger (x10), which makes it hardly worth the effort. Ubuntu has no problem reading djvu files, but if your reason is good enough, use the following script.

Warning: Do not try it on 200 files right away. Run a test first on one or two small ones, to get the feel of how long it takes, and to make sure you are satisfied with the result. Press Ctrl + C, in case you want to stop the process.

for i in *.djvu;
do ddjvu -format=pdf -scale=100 "$i" "${i/%.djvu/}.pdf"

...or the same, as a one-liner

for i in *.djvu; do ddjvu -format=pdf -scale=100 "$i" "${i/%.djvu/}.pdf";done

Simply run that in a folder with djvu files. The -scale=100 option downscales the output images, which makes the process much faster, and the output files' size more reasonable. Without it, the resulting PDFs were much larger then the originals, and took ages to convert, at least in my tests.

share|improve this answer
With -scale=100 I get a blurred pdf. Without it I get a sharp pdf. – Alessandro Jacopson Jan 4 '14 at 12:19
Whatever works for you. If the process is slow, you could try adjusting the scale value relative to your display's DPI. There are other options as well: – mikewhatever Jan 4 '14 at 12:29

Personally I really like Calibre, which is a great for managing, converting, synching, sharing and editing ebooks. You can do batch conversions with it and djvu to PDF is supported. To install, just enter the following via cli:

sudo apt-get install calibre

You can find info on the software at

I hope it helps. :)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.