Page 1 of 1

IM does not use media box by default

Posted: 2006-04-26T14:48:01-07:00
by sven
Hi magick,

I've read that IM is supposed to use the media box by default when converting a PDF document to something else, e.g.

Code: Select all

convert image.pdf image.jpg
Unfortunately, I have a PDF document where this behaviour is not true using ImageMagick 6.2.7-1.

The media box, the crop box and the art box (= bounding box) are of the same size. This is the size I'd like to have after the conversion.
The bleed box and the trim box are of the same size as well, but bigger.

When converting a PDF document as described, the size of the bleed box resp. trim box is taken into account, i.e. the image is too big.

The option -define pdf:use-cropbox=true leads to the same result.

Sorry, but I cannot provide a suitable PDF document at the moment.

I hope that you can help...

Thanks a lot in advance and best regards
Sven

Posted: 2006-04-26T15:10:56-07:00
by magick
We'll investigate as soon as you provide a URL to a PDF that illustrates the problem. The PDF files we use for testing produce correct results (trimmed to MediaBox or CropBox).

Posted: 2006-04-27T01:07:10-07:00
by sven
I've constructed an example.

Here you can find the input PDF (see description in the original posting).

The output PDF (convert input.pdf output.pdf) document can be found here.

Best regards
Sven

Posted: 2006-05-02T05:03:56-07:00
by sven
Do you have an idea what might be wrong?

Best regards
Sven