Page 1 of 1

Converting PDF's -dUseCropBox

Posted: 2010-09-13T02:17:42-07:00
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