I'm using ImageMagick 6.5.4-2 2010-07-07 on CentOS 5.5 x64
to convert a pdf file to a png.
I run this command on my pdf:
convert -density 300x300 -resize 800x500 3100.348481.569075_back.pdf 3100.348481.569075_back.png
This is the original pdf:
http://images.greetingcarduniverse.com/ ... 5_back.pdf
This is the resulting png:
http://images.greetingcarduniverse.com/ ... 5_back.png
Why is the image of the pdf on the png so tiny?
It does the same thing for gif or jpg also.
PDF to PNG weirdness
Re: PDF to PNG weirdness
The PDF has a larger "MediaBox", with your picture in the lower left corner. A lot of PDF viewers will only display the "CropBox" (which is relatively small in your case). With ImageMagick/Ghostscript, you can use the option "-define pdf:use-cropbox=true" to get just this area:
convert -density 300 -define pdf:use-cropbox=true 3100.348481.569075_back.pdf 3100.348481.569075_back.png
See also here: http://www.imagemagick.org/Usage/formats/#pdf_reading
convert -density 300 -define pdf:use-cropbox=true 3100.348481.569075_back.pdf 3100.348481.569075_back.png
See also here: http://www.imagemagick.org/Usage/formats/#pdf_reading
Re: PDF to PNG weirdness
Thanks for that tip, you learn something new every day.
Works great now!
Works great now!