Page 1 of 1

PDF CropBox

Posted: 2006-03-14T07:26:22-07:00
by rodpro
Hi,

How can I set the option below using MagickWandAPI?

2006-03-06 6.2.6-4 Cristy <stentz@image...>
"By default, ImageMagick sets the page size to the MediaBox. Some PDF files, however, have a CropBox that is smaller than the MediaBox and may include white space, registration or cutting marks outside the CropBox. To force ImageMagick to use the CropBox rather than the MediaBox, use -define (e.g. -define pdf:use-cropbox=true)."

Thanks

Rodrigo

Posted: 2006-03-14T08:18:22-07:00
by magick
In MagickWand, use MagickSetImageOption() to associate an attribute with an image. For example,
  • MagickSetImageOption(wand,"pdf","use-cropbox","true");

Posted: 2006-03-14T10:19:48-07:00
by rodpro
Thanks

Rodrigo