Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://794918]
[Corion]: choroba: Yeah - I basically have the same for regenerating README and README.mkdown already, except that I do that in Makefile.PL, but I guess one or the other thing should somehow work ;)
[ambrus]: was this bug: https://rt.cpan. org/Public/Bug/ Display.html?id= 59814
[Corion]: ambrus: Oh - that one would be much harder to automate... The SYNOPSIS section should mostly be a runnable program IMO, but I write only small snippets in my documentation for single functions/methods, and creating the appropriate environment for ...
[Corion]: ... those in an automated fashion seems somewhat hard to me. Although it should do wonders for the test coverage ;)
[haukex]: Corion: I once wrote an automated thingy for that here
[haukex]: here's the code that uses it

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2017-02-27 12:18 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (385 votes). Check out past polls.