Converting PDF's -dUseCropBox

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
Pino

Converting PDF's -dUseCropBox

Post by Pino »

Hi,

I'm trying to convert a PDF to an image and I need to make sure that the CropBox parameter is specified for when calling Ghostscript. Can this be done?

Current Code : convert "/var/www/vhosts/site.co.uk/httpdocs/uploads/source_pdf/PP4SDpdf.pdf" -resize 500X500 "/var/www/vhosts/site.co.uk/httpdocs/uploads/image_pdf/SaturdayTest.jpg"

It works well but just need to get the Ghostscript parameter in.

Pino
Post Reply