I'm trying to convert pdfs and automatically crop the area outside the trimbox, but it's not working as expected.
My command (ImageMagick 6.2.4 02/10/07 Q16):
Code: Select all
convert -define pdf:use-trimbox=true -density 300 foo.pdf -resize 600 bar.jpg
result
So I copied the trim value to crop inside the pdf and tried:
Code: Select all
convert -define pdf:use-cropbox=true -density 300 foo.pdf -resize 600 bar.jpg
result
So basically I have two questions:
* how do i get rid off the white border when using cropbox? did i miss a +repage or something?
* why doesn't use-trimbox work?
EDIT:
seems like -trim +repage will remove the white borders:
Code: Select all
convert -define pdf:use-cropbox=true -density 300 -trim +repage foo.pdf -resize 600x bar.jpg