Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to convert DJVU to PDF

📅 2012-Nov-29 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ djvu, pdf ⬩ 📚 Archive

DjVuLibre provides open source libraries, commandline tools and GUI tools for dealing with DJVU files. So all solutions for converting a DJVU file to a PDF file will use DjVuLibre in some form.

Note that it looks like all conversion options seem to produce PDF by converting every DJVU page into an image. So, the resulting PDF files will be big and much larger than the original DJVU files. There seems to be no way to produce smaller PDF files.

Using ddjvu

$ sudo apt install djvulibre-bin
$ ddjvu -format=pdf in.djvu out.pdf
$ ddjvu -format=pdf -verbose in.djvu out.pdf
$ ddjvu -format=pdf -mag=300 in.djvu out.pdf

Tried with: Ubuntu 18.04

Using djvups

$ sudo apt install djvulibre-bin ghostscript
$ djvups in.djvu
$ ps2pdf out.pdf

Tried with: Ubuntu 18.04

Using DJView

Export DJVU as PDF in DJView

To convert a DJVU document to a PDF document:

  1. Install DjVuLibre DJView.

  2. Open the DJVU document in DJView.

  3. Choose File → Export as

  4. In the Export dialog choose PDF document, the PDF filename and path and press OK.

Note that the PDF export option seems to be missing in recent versions of DJView.

Tried with: DjVuLibre DJView 4.9 and Windows 7 Professional x64

© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 Mastodon📧 Email