Hartmut Henkel wrote:
On Mon, 28 Aug 2006, Hans Hagen wrote:
Hartmut Henkel wrote:
On Mon, 28 Aug 2006, Hans Hagen wrote:
It's kind of annoying that pdftex has hard coded suffixes.
how about something
\pdfjpgsuffixes{jpg,jpeg,myjpg} \pdfpngsuffixes{png,somepng} \pdfpdfsuffixes{pdf,epdf,fdf}
but you know that the suffixes are used only as a last resort, as first the file headers are checked for the file type (thanks to Heiko!). So e. g. foo.somejpg is a legal name and would still be recognized as .png if it's a png file :-)
when i test with a unknown format, i get an abort and:
Error: pdftex.exe (file ./hakker1b.tif): unknown type of image
so, in order to know if a funny suffix is a valid one for pdftex, we need something
\pdfcheckimage{somefile.somesiffix}
which sets a flag, say \pdfimagecheck 0/1
like
\pdfretval=-1 not recognized \pdfretval=0 PDF \pdfretval=1 PNG \pdfretval=2 JPG \pdfretval=3 JBIG2
or better 0,1,2,3,4?
right, that would be nice! (0,1,2,...) we should aborted runs as much as possible Hans -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------