Re: PDF graphics conversion

"Adam R. Maxwell" <[email protected]> Thu, 27 Sep 2007 15:34:41 -0700
Newsgroups gmane.comp.tex.latex.latex2rtf.devel
Message-ID <[email protected]>
 
On Wednesday, September 26, 2007, at 02:42PM, "Adam R. Maxwell" <[email protected]> wrote:
>As far as I could tell last time I looked at this, ImageMagick reads the /MediaBox instead of the /CropBox of the PDF file, then composites the ghostscript output to a bitmap of the media box size.

A (hopefully) final note on this topic: the problem doesn't occur with 5.5.x versions of ImageMagick; I think it came about after version 6 was released.  Anyway, 6.0.7 shipped with RHEL has the problem.

The ImageMagick docs confirm my statement about the media box, and say that you can use e.g. `convert file.pdf -define pdf:use-cropbox=true file.png`, but I can't get this to work here.  The -define flag requires a recent version of ImageMagick, so putting that in latex2rtf is probably not the best option.

On OS X, using sips might be interesting, since it generally has pretty good PDF support, and wouldn't require any 3rd party software (gs, ImageMagick).  I might mess with that in my Copious Free Time.

-- 
Adam

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/