Page 1 of 1

Problem rendering PDF to jpg/png

Posted: 2010-06-29T02:32:14-07:00
by SockPants
Hi,

I'm using this to convert a pdf file to images:

convert input.pdf[0] -units PixelsPerInch -density 400 -page A0 -quality 95 output.png

My aim is to get a large image, but somehow it stays 612x792. I can change the density and page and nothing happens. I tried -resample and -resize but they just enlarge the image after it has been rasterized, which makes it ugly.

Re: Problem rendering PDF to jpg/png

Posted: 2010-06-29T04:23:31-07:00
by snibgo
You are reading the image, which rasterizes it, then changing the density etc. Try changing the order.

Re: Problem rendering PDF to jpg/png

Posted: 2010-06-29T10:23:22-07:00
by fmw42
put units and density before the input image as snibgo suggested. You need to tell PDF files what density to use as they have no internal density since they are vector format.