create box using 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?".
Post Reply
Nik
Posts: 37
Joined: 2009-09-16T03:54:58-07:00
Authentication code: 8675309

create box using PDF Trimbox

Post by Nik »

Hi All,

Could somebody please tell me if IM can draw a box in a pdf using the bounds from the pdf trimbox?
Any help or suggestions would be gratefully appreciated.

Thanks,
Nik
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: create box using PDF Trimbox

Post by fmw42 »

I cannot say for sure, but see http://www.imagemagick.org/Usage/formats/#pdf

There it talks about using the trimbox.
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

Re: create box using PDF Trimbox

Post by Drarakel »

Yes, that works. Use "-define pdf:use-trimbox=true" right at the start of your command.
Post Reply