Re: Problems converting PDF to TIF

Wolfgang Hugemann <[email protected]> Sat, 09 Oct 2010 12:10:11 +0200
Newsgroups gmane.comp.video.image-magick.user
Message-ID <[email protected]>
This is caused by the relative ordering of the 'density' statement and 
the input file. Try the following simple example:

convert -size 200x200 xc:blue test.pdf

This will embed a raster image of 200x200 pixels into a PDF.
Then try

convert test.pdf -density 200x100 post.tif
convert -density 200x100 test.pdf pre.tif

It will turn out that post.pdf will have 200x200 pixels and pre.pdf will 
have will have 556x278 pixels.

In the first command, the PDF is read assuming equal resolution in x- 
and y-direction and the resolution of the TIF ist set to 200x100.

In the latter case, the PDF is read assuming a resolution of 200x100 
(instead of the 72x72 standard resolution), resulting in dimensions of 
200*200/72 = 556 in the x-direction and 200*100/72 = 278 in the y-direction.

Greetings from Münster, Germany
Wolfgang Hugemann