PDF Trimbox

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".

Postby magick » 2006-04-24T06:56:24+00:00

ImageMagick uses the media box by default. If you use the -define pdf:use-cropbox=true option, ImageMagick uses the crop box. However, we currently have no option to use the trim box. Post a URL to your image here and we will get a patch in ImageMagick 6.2.7-2 Beta to use the trim box.
User avatar
magick
Site Admin
 
Posts: 6605
Joined: 2003-05-31T11:32:55+00:00

Postby magick » 2006-04-24T07:44:10+00:00

An example PDF image with a trim box is needed to test our patch.
User avatar
magick
Site Admin
 
Posts: 6605
Joined: 2003-05-31T11:32:55+00:00

Re: PDF Trimbox

Postby whirled » 2007-11-07T11:34:20+00:00

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.

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]


I am using stdin and stdout for input and output, respectively.

Any help with this matter would be greatly appreciated.
whirled
 
Posts: 4
Joined: 2007-07-06T13:47:56+00:00

Re: PDF Trimbox

Postby magick » 2007-11-07T12:20:04+00:00

Try adding -define pdf:use-trimbox=true to your command line to size the image as defined by the PDF TrimBox geometry.
User avatar
magick
Site Admin
 
Posts: 6605
Joined: 2003-05-31T11:32:55+00:00

Re: PDF Trimbox

Postby anthony » 2007-11-19T17:46:46+00:00

Added the above to IM Examples, PDF format notes.
http://imagemagick.org/Usage/formats/#pdf

may take a day or two to appear.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
http://www.imagemagick.org/Usage/
User avatar
anthony
 
Posts: 4487
Joined: 2004-05-31T19:27:03+00:00
Location: Brisbane, Australia

Re: PDF Trimbox

Postby theorysavage » 2008-02-04T13:33:19+00:00

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.
theorysavage
 
Posts: 4
Joined: 2008-02-04T13:15:46+00:00

Re: PDF Trimbox

Postby bowa » 2008-06-24T01:22:13+00:00

yep i am having the same problem ...
bowa
 
Posts: 5
Joined: 2007-10-24T04:59:11+00:00


Return to Users

Who is online

Users browsing this forum: Exabot [Bot], MSN [Bot] and 11 guests