PDF Trimbox
Re: PDF Trimbox
Hi,
I was wondering if the ability to use the trimbox rather than the cropbox has been added to IM yet...
I am creating high resolution PDFs with bleed, and then generating low resolution GIFs with IM. However, I would like to view the bleed within the PDF, but not in the GIF. Using cropbox hides the bleed in Adobe Reader.
I also tried using -crop to try to cut the bleed out of the GIF, which works fine as long as the image is not scaled at all. If the image is scaled, IM does not crop the image properly. I tried changing the order of the commands, and still could not achieve the desired result.
I used +repage, which makes the image the proper size, but still does not crop the correct portion. Below is an example of the command I used.
I am using stdin and stdout for input and output, respectively.
Any help with this matter would be greatly appreciated.
I was wondering if the ability to use the trimbox rather than the cropbox has been added to IM yet...
I am creating high resolution PDFs with bleed, and then generating low resolution GIFs with IM. However, I would like to view the bleed within the PDF, but not in the GIF. Using cropbox hides the bleed in Adobe Reader.
I also tried using -crop to try to cut the bleed out of the GIF, which works fine as long as the image is not scaled at all. If the image is scaled, IM does not crop the image properly. I tried changing the order of the commands, and still could not achieve the desired result.
I used +repage, which makes the image the proper size, but still does not crop the correct portion. Below is an example of the command I used.
Code: Select all
convert -density 155 -profile "USWebCoatedSWOP.icc" pdf:- -crop 252x144+4+4 +repage -profile "sRGB Color Space Profile.icm" -strip -resize 200% -resample 72 gif:-[-1]
Any help with this matter would be greatly appreciated.
Re: PDF Trimbox
Try adding -define pdf:use-trimbox=true to your command line to size the image as defined by the PDF TrimBox geometry.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: PDF Trimbox
Added the above to IM Examples, PDF format notes.
http://imagemagick.org/Usage/formats/#pdf
may take a day or two to appear.
http://imagemagick.org/Usage/formats/#pdf
may take a day or two to appear.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: PDF Trimbox
when I use -define pdf:use-trimbox=true, I get the correct trimbox dimensions but not the right location, as if the trimbox had been pushed to the bottom left corner of the page.
Is there a way to fix this?
I have examples images if this is not clear.
Is there a way to fix this?
I have examples images if this is not clear.