PDF CropBox

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
rodpro

PDF CropBox

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

In MagickWand, use MagickSetImageOption() to associate an attribute with an image. For example,
  • MagickSetImageOption(wand,"pdf","use-cropbox","true");
rodpro

Post by rodpro »

Thanks

Rodrigo
Post Reply