Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Convert PDF to HTML (or JPEG)

by almut (Canon)
on Sep 12, 2009 at 12:31 UTC ( #794918=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ gs -q -dBATCH -dNOPAUSE -sDEVICE=jpeg -dJPEGQ88 -r150 -sOutputFile=i
    +mg%d.jpg input.pdf
    
  2. or download this
    $ gs -q -dBATCH -dNOPAUSE -sDEVICE=jpeg -dJPEGQ88 -r600 -sOutputFile=i
    +mg%d.jpg input.pdf
    $ for img in img*.jpg ; do convert $img -filter Lanczos -resize 25% -q
    +uality 90 out_$img ; done