One of the main reasons to convert a pdf file into djvu is to save space. I've seen 577MB PDF file become 95MB DJVU after conversion. But a lot depends on the converter chosen and of course, the settings.
Method 1: The easy pdf2djvu
Installed by
Code:
sudo apt-get install pdf2djvu
After it's done just open a terminal and type
Code:
pdf2djvu -o output_file input_file
input_file being the pdf you want to convert.
Method 2: The harder way djvudigital
Step 1:
Code:
sudo apt-get install djvulibre-bin djvulibre-desktop djvulibre-plugin
Step 2: download the latest GSDJVU from here http://sourceforge.net/projects/djvu/files/GSDjVu/
Step 3: Extract it somewhere and inside create a new directory named BUILD
Step 4: download latest
Put these files in the BUILD directory you created in step 3. Do not extract them
Step 5: download http://sourceforge.net/tracker/index...53&atid=406585 and put it in the GSDJVU directory.
Step 6:
Code:
sudo apt-get install patch
. In terminal go to the GSDJVU dir and type
Code:
patch -p1 < 0001-Upstream-removed-gserror.h-in-gs905-commit-8f2ecf4.patch
Step 7: RUN the shell script . USE FULL PATHNAME. eg /home/sam/gsdjvu/build-gsjvu
Step 8: Wait
Step 9:
Code:
sudo cp -r BUILD/INST/gsdjvu /usr/local/lib
Code:
sudo cd /usr/local/bin
Code:
sudo ln -s ../lib/gsdjvu/gsdjvu gsdjvu
You are now ready to run djvudigital. Just type
Code:
djvudigital input_file output_file
and all should be well.
For more info consult the manuals:
Code:
man pdf2djvu
man djvudigital
Bookmarks