new option "-define pdf:use-cropbox=true" doesn't

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
donovaly
Posts: 43
Joined: 2004-10-04T16:24:55-07:00

new option "-define pdf:use-cropbox=true" doesn't

Post by donovaly »

I'm using Imagemagick 6.2.6-4 and wanted to test out the new option "-define pdf:use-cropbox=true"

Attached a pdf-file that has:

/MediaBox[0 0 595 842]
/CropBox[62.362183 85.039368 566.653564 737.118103]

When I use the following command

convert -define pdf:use-cropbox=true pdf:Tachyonen.pdf ppm:Tachyonen.ppm

The resulting ppm shows not the content of the cropbox, but a region like this [0 0 550 700]

I would attach the a pdf as testfile but don't know how.
Last edited by donovaly on 2006-03-26T15:12:40-07:00, edited 2 times in total.
donovaly
Posts: 43
Joined: 2004-10-04T16:24:55-07:00

Post by donovaly »

I would attach the a pdf as testfile but don't know how.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Can you post a URL to your image so we can download it?
donovaly
Posts: 43
Joined: 2004-10-04T16:24:55-07:00

Post by donovaly »

[quote="magick"]Can you post a URL to your image so we can download it?[/quote]

Here it is:

http://fkurth.de/uwest/LyX/Tachyonen.pdf
and the resulting ppm:
http://fkurth.de/uwest/LyX/Tachyonen.ppm

With this pdf test image you can also test the two other related bugs I reported:

http://redux.imagemagick.org/discussion ... d3778a2c12

http://redux.imagemagick.org/discussion ... d3778a2c12
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

The correct behavior is always one patch away... ImageMagick 6.2.6-8 Beta properly converts your image with the correct cropbox. 6.2.6-8 will be available tommorrow.
Post Reply