[texhax] Convert pdf to png or other picture format
rdt at cs.queensu.ca
Tue Oct 22 01:11:24 CEST 2013
>| > > To get higher resolution than the default (likely 100dpi) use
>| > >
>| > > convert -density nnn name.pdf name.jpg
>| > >
>| > > where nnn is as large as you want. 200 should be good enough for
>| > > most purposes.
>| > I'm finding that specifying density makes the output from "convert"
>| > better, but the best result I've had is with "pdftoppm"
>| > (xpdf/poppler) followed by "ppmtojpeg" (not seeing a ppm to png
>| > converter).
>|I doubt that convert/ImageMagick is able to read PostScript or PDF
>|files by itself. It certainly runs Ghostscript in the background.
>|Hence I assume that using Ghostscript directly is also an option.
It's certainly an option but why? The calling conventions for gs are
a nightmare and the OP was already using convert; think of it as a
front-end to gs.
More information about the texhax