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

Re^5: Convert PDF to HTML (or JPEG)

by almut (Canon)
on Sep 14, 2009 at 23:29 UTC ( #795241=note: print w/replies, xml ) Need Help??

in reply to Re^4: Convert PDF to HTML (or JPEG)
in thread Convert PDF to HTML (or JPEG)

Thanks, that's already a lot better (placing the -density option before the source file name seems to have caused the major improvement).

Yet, I'm not really convinced of the quality that can be achieved that way. Maybe I'm little picky in these things, but I still feel the text looks a bit ragged, and the graphics don't seem to be anti-aliased at all (I also tried putting -antialias in various places — couldn't see a difference, though).  In other words, I can't help thinking that the results of running gs separately somehow look better (the version on the right in the side-by-side comparison (300%-zoom, cropped)) — at least smoother.  Anyhow, I guess I'll stick with my technique for the time being.


PS: Große Vallüla ??? xD

Yeah well, that was the first adequate PDF file I found in my temp directory.  Rest assured, I have no affiliation with Maria & Margot, or that kind of music, whatsoever ;) — I just like hiking in the mountains.

Replies are listed 'Best First'.
Re^6: Convert PDF to HTML (or JPEG)
by LanX (Bishop) on Sep 14, 2009 at 23:44 UTC
    Right, I remember reading somewhere that with convert switches order counts ...

    UPDATE< convert can process several files at a time, and the switches have to be before the corresponding filename! >

    > Yet, I'm not really convinced of the quality that can be achieved that way.

    UPDATE< Did you try a higher density yet? 300 works fine for me and filesize even drops!>

    Actually I switched 7 years ago to pstoimg from the latex2html distribution producing very neat png's.

    (but it's -as I noticed today - just a perl wrapper around gs ;)

    Anyway pstoimg has two switches for antialiasing : -antialias and -aaliastext so I suppose thats the point where convert may loose the necessary information...

    Cheers Rolf

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://795241]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2018-07-19 19:52 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (417 votes). Check out past polls.