Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by almut (Canon)
on Sep 14, 2009 at 23:29 UTC ( [id://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 (Saint) 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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://795241]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-03-19 07:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found