[texhax] Convert pdf to png or other picture format

Reinhard Kotucha reinhard.kotucha at web.de
Tue Oct 22 01:30:02 CEST 2013


On 2013-10-21 at 19:11:24 -0400, Bob Tennent wrote:

 >  >| > > 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.

The calling conventions for Ghostscript are very clear, given that you
read the documentation.

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha                                      Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                              mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------


More information about the texhax mailing list