# [texhax] Problem with including a .pdf file

Mon May 16 18:38:56 CEST 2005

Peter Flom :

> Hello
>
> I am using Protext on a Windows machine.
>
> I produced a .pdf file, using SAS and Acrobat.  When viewed with
> Acrobat, it is a full page, but the image itself is roughly square
> (uneven margins).
>
> Now, I'd like to include it in a LaTeX document.
>
> I tried
>
>   \includegraphics[bb=0 0 150 150]{InfluencePlots0.pdf}
>
> when I texify this, the original .pdf file is called up, but the file
> produced by LaTeX has a thin red box amd no image at all......
>
> I've tried various combinations of numbers for the bb, but all produce
> thin red boxes, just the height of the box differs.....
>
> I am trying to figure this out usign the LaTeX graphics companion, but
> to no avial....
>
> any help appreciated.

pdflatex does not support the bb option. You need to use viewport instead
it has the same syntax but it has a different meaning.

the reference point is now the lower lefthand corner of the included
picture, so you might need

\includegraphics[viewport=50 50 200 200,clip]{...}

another possibility is trim, again same syntax but here it says how many
bp's to take away from the top right bottom and left (or some other
order).

I think this is explained in the LaTeX Companion 2. edition. I'm sure it's
also covered in "Using Imported Graphics In \LaTeXe" (epslatex on CTAN)

--

/daleif

``You cannot help men permanently by doing for them
what they could and should do for themselves. ''
-- Abraham Lincoln