Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://794918]
help
Chatterbox?
[ambrus]: Corion: no, backwards. It's possible in the general case, but not in the specific case of bad data we have. Which is why it's harder to explain.
[marto]: that reminds me, to donate...
[ambrus]: If it was possible in this specific case, then the burden to argue for that would be his.
[Corion]: ambrus: Ah, but he's the boss, so the burden to show that it's impossible still lies on you :-)
[Corion]: ambrus: I would work with him through an example

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2017-12-12 13:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (332 votes). Check out past polls.

    Notices?