[XeTeX] XeTeXpicfile unable to load PDF

Akira Kakuto kakuto at fuk.kindai.ac.jp
Mon Jul 21 10:44:55 CEST 2008


Hi,

> > It works for me. What OS, what TeX distro, what xetex version?
> 
> It may be a bug in w32tex. I've confirmed that
> \XeTeXpdffile "pic.pdf" works, but
> \XeTeXpicfile "pic.pdf" fails.
> I'll investigate the problem.


\XeTeXpicfile "pic.png"
and
\XeTeXpicfile "pic.jpg"
works. But
\XeTeXpicfile "pic.pdf"
fails.

I investigated find_pic_file() in XeTeX_pic.c.
I think the function returns -1 when called with
pdfBoxType == 0 (i.e., not using \XeTeXpdffile) for pdf file.
Thus the failure of \XeTeXpicfile "pic.pdf" seems natulal.

Thanks,
Akira


More information about the XeTeX mailing list