[pdftex] wrong page breaks with image inclusion in pdftex

Gerolf pdftex at GDBrettschneider.de
Wed Mar 3 15:34:13 CET 2004


Hartmut Henkel wrote:

>On Tue, 2 Mar 2004, Joseph Strus wrote:
>
>>So, when I do something like:
>>
>>\pdfximage height 4in {hello.jpg}
>>\pdfrefximage \pdflastximage
>>...
>>lots of text
>>...
>>
>>The image is included correctly. However, the page that includes the
>>.jpg seems to overrun and the page break does not happen where it
>>should, and I'm getting box overfulls that are about the size of the
>>image.  Following pages all have correct page breaks.
>>
>Does \hbox{\pdfrefximage \pdflastximage} work?
>
>Regards, Hartmut
>
Yes, you have to put the image into a box. 
You can also try constructs like

  \vbox to 4in {%
    \hbox to 3in {%
      \pdfrefximage \pdflastximage 
      \hss }\vss}

If you think something's wrong with

  \pdfrefximage \pdflastximage

replace them with

  \vrule width 3in height 4in

to see if the layout is fine.

Gerolf






More information about the pdftex mailing list