Page 1 of 1
The solution to the problem is to strip the MediaBox from the PDF or edit the ImageMagick source, coders/pdf.c. Remove the MediaBox check from ReadPDFImage() and rebuild/reinstall. Alternatively you can download ImageMagick 6.2.6-4 Beta within a few days and add this to your command line:
- -define pdf:use-cropbox=true
Try upgrading your version of Ghostscript. If that does not make a difference this may work:
- convert -define pdf:use-cropbox=true 1005.pdf -delete 1-99 sizetest.jpg
Our recommendation is to use the Ghostscript program directly and bypass ImageMagick.
Yes you can use Ghostscript to convert directly to JPEG. See the Ghostscript forums to determine how this is done. Add -verbose to your convert command to see the options ImageMagick passes to Ghostscript.