Results 1 to 5 of 5

Thread: can i convert pdf files to djvu?

  1. #1
    Join Date
    May 2007
    Location
    Townsville, Australia
    Beans
    1,820
    Distro
    Lubuntu 14.04 Trusty Tahr

    can i convert pdf files to djvu?

    i have a few hundred pdf files scattered thru many directorys. the pdf files range from 80 meg to 600 meg in length


    is there a simple command i can run from shell to convert these pdf files to djvu?


    i dont mind if i have to do them one at a time. it will take ages if i have to though thats all.



    is there a scrpit or something i can use to scan my directorys and convert all the pdf files it goes to djvu files?

    i dont really mind if there is no script to do it and i need to do each manaually, so long as i can do it.


    thanks
    Ubuntu user # 16304 www.nocleanfeed.com
    If someone asks you to sudo rm -rf anything, don't do it, and don't run any command with rm in it unless you know exactly what you're doing.things i have learnt changing from Xp pro to Ubuntu

  2. #2
    brian_p is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Apr 2008
    Location
    UK
    Beans
    1,622

    Re: can i convert pdf files to djvu?

    Quote Originally Posted by stinger30au View Post

    is there a simple command i can run from shell to convert these pdf files to djvu?
    Code:
    apt-cache search djvu
    Code:
    apt-get install pdf2djvu
    Brian.

  3. #3
    Join Date
    May 2007
    Location
    Townsville, Australia
    Beans
    1,820
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: can i convert pdf files to djvu?

    thanks
    Ubuntu user # 16304 www.nocleanfeed.com
    If someone asks you to sudo rm -rf anything, don't do it, and don't run any command with rm in it unless you know exactly what you're doing.things i have learnt changing from Xp pro to Ubuntu

  4. #4
    Join Date
    May 2007
    Location
    Townsville, Australia
    Beans
    1,820
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: can i convert pdf files to djvu?

    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
    Ubuntu user # 16304 www.nocleanfeed.com
    If someone asks you to sudo rm -rf anything, don't do it, and don't run any command with rm in it unless you know exactly what you're doing.things i have learnt changing from Xp pro to Ubuntu

  5. #5
    Join Date
    May 2010
    Location
    SF, CA
    Beans
    3
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: can i convert pdf files to djvu?

    Thank you!
    I've been looking for a while how do batch convert to djvu.
    ubuntuforums is quickly becoming my goto source for help

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •