Another powerdot problem ...

Schneider, Thomas (NIH/NCI) [E] schneidt at mail.nih.gov
Fri Nov 15 03:53:54 CET 2024


Rolf:

> I am trying to include a figure (from a *.pdf file) in a powerdot slide.
> I get an error:
> > LaTeX Error: Cannot determine size of graphic in keg.pdf (no
> > BoundingBox).

Convert the pdf image to a postscript image:

35% pdf2ps keg.pdf
36% head keg.ps
%!PS-Adobe-3.0
%%Invocation: path/gs -q -dNOPAUSE -dBATCH -P- -dSAFER -sDEVICE=ps2write -sOutputFile=? ? ? ? -f ?
%%BoundingBox: 0 0 504 432
%%HiResBoundingBox: 0 0 504.00 432.00
%%Creator: GPL Ghostscript 10030 (ps2write)
%%LanguageLevel: 2
%%CreationDate: D:20241114214454-05'00'
%%Pages: 1
%%EndComments
%%BeginProlog
37% 

Ok, now we have keg.ps.

Note the BoundingBox!!!

Now replace keg.pdf with keg.ps in the demo.tex.

38% cat demo.tex | sed 's/keg.pdf/keg.ps/' > fixeddemo.tex

45% diff demo.tex fixeddemo.tex 
20c20
< \includegraphics[width=10cm]{keg.pdf}
---
> \includegraphics[width=10cm]{keg.ps}
46% 

OK!  Try it:

latex fixeddemo.tex
latex fixeddemo.tex
dvips fixeddemo
open fixeddemo.ps

The display is pretty bad but it worked.

BOTTOM LINE:

Normal LaTeX takes postscript (ps) not PDF.
I make all my images into ps.
There is a version of LaTeX that takes PDF but then
I think EVERYTHING has to be PDF maybe.

Tom

  Thomas D. Schneider, Ph.D.
  Senior Investigator
  National Institutes of Health
  National Cancer Institute
  Center for Cancer Research
  RNA Biology Laboratory
  Biological Information Theory Group
  Frederick, Maryland  21702-1201
  schneidt at mail.nih.gov
  https://ccr.cancer.gov/staff-directory/thomas-d-schneider
  alum.mit.edu/www/toms
  https://alum.mit.edu/www/toms





More information about the texhax mailing list.