bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pdf images ignore bounding box?


From: Karl Berry
Subject: Re: pdf images ignore bounding box?
Date: Mon, 4 Aug 2003 13:32:41 -0400

Hi Joshua,

    the first image is centered and uses up the whole page.  The second
    image is gone.  I'm ot sure where it is.  See the dvi for correct
    results.

The problem was that your pdf files, as far as TeX was concerned, were
actually the size of the page.  Perhaps gs -sDEVICE=bbox returns the
real bounding box of the black marks instead of the specified bounding
box numbers.  I tested by doing (in plain TeX):

\setbox0=\vbox{\immediate\pdfximage{feelings.pdf}\pdfrefximage\pdflastximage}
\showbox0

(I got this recipe out of the pdftex manual,
http://www.tug.org/applications/pdftex/pdftex-s.pdf.)

And the result showed that the dimensions were the size of a whole page.
This seems to be what ps2pdf produces.  If there's an option to make the
page size be the actual bounding box size, I don't know what it is (I
can't find any meaningful documentation on it).

However, there is another script, epstopdf, which goes to some trouble
to do exactly that.  When I regenerated your .pdf files from the .eps's
using that, the result looked ok.

epstopdf is part of the pdftex distribution and should be included in
your TeX installation.  If not, you can get a copy from
http://tug.org/tex-archive/support/epstopdf/.

Hope this works for you ...

k




reply via email to

[Prev in Thread] Current Thread [Next in Thread]