# [tex-live] pdflatex - includegraphics - extensions

John Culleton john at wexfordpress.com
Sun Jun 14 22:03:44 CEST 2009

```On Saturday 13 June 2009 03:46:03 am Yue Wang wrote:
> Hi,
>
>
> Yes, I am wrong. pdfTeX gives me this error:
>
> ! pdfTeX error (\pdfximage): not allowed in DVI mode (\pdfoutput
> <= 0).
>
> but what about make that an extension (allow that in dvi mode),
> or switch to pdfout=1 before getting the bbox, and switch back to
> zero after that?
>
> Yue Wang
>
> On Sat, Jun 13, 2009 at 11:46 AM, Heiko
>
> Oberdiek<oberdiek at uni-freiburg.de> wrote:
> > On Sat, Jun 13, 2009 at 10:33:23AM +0800, Yue Wang wrote:
> >> Another related issue:
> >> in dvi mode, graphicx package still requires the bbox
> >> information of a jpeg/png/pdf image.
> >> I think that is not needed for typesetting as pdftex
> >> primitives can get the image size correctly.
> >
> > Only in PDF mode the images are processed during the pdfTeX run
> > and therefore the data about size are available.
> >
> > But there is package `bmpsize' that analyzes the images to get
> > the information about size (using \pdffiledump).
> >
> > Yours sincerely
> >  Heiko <oberdiek at uni-freiburg.de>

I am of the old school, but I find no reason to use dvi any more.
Is there a specific reason for your use?

--
John Culleton
Create Book Covers with Scribus/e-book \$5.95
http://www.booklocker.com/books/4055.html
```