<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Sorry for the late reply.<div><br></div><div>I'm going to change the error message as suggested.</div><div><br></div><div>Thanks for your suggestion.</div><div><br></div><div>Thanks,<br><div dir="ltr">Shunsaku Hirata</div><div dir="ltr"><br><blockquote type="cite">2021/05/02 5:14、Philip Taylor <P.Taylor@rhul.ac.uk>のメール:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">


Given the following input, XeTeX/xdvipdfmx reports :<br>
<br>
<blockquote type="cite">This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021/W32TeX) (preloaded format=xetex)
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
restricted \write18 enabled.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
entering extended mode</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
(./Hoi-An vegan menu (combine pages, bg).tex [1]</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
xdvipdfmx:fatal: Image inclusion failed for "./Hoi-An vegan menu (separate pages).pdf".</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
        margin-bottom:0px; margin-left:0px; margin-right:0px;
        -qt-block-indent:0; text-indent:0px;">
<br>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
No output PDF file written.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
)</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
Error 1 (driver return code) generating output;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
file Hoi-An vegan menu (combine pages, bg).pdf may not be valid.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
SyncTeX written on Hoi-An vegan menu (combine pages, bg).synctex.gz.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
        margin-bottom:0px; margin-left:0px; margin-right:0px;
        -qt-block-indent:0; text-indent:0px;">
<br>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
Transcript written on Hoi-An vegan menu (combine pages, bg).log.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
        margin-bottom:0px; margin-left:0px; margin-right:0px;
        -qt-block-indent:0; text-indent:0px;">
<br>
</p>
</blockquote>
<br>
for source :<br>
<br>
<blockquote type="cite">\def \source {"Hoi-An vegan menu (separate pages).pdf" }
<p style="-qt-paragraph-type:empty; margin-top:0px;
        margin-bottom:0px; margin-left:0px; margin-right:0px;
        -qt-block-indent:0; text-indent:0px;">
<br>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
\setbox 1 = \vbox {\XeTeXpdffile \source page 1 width \dimexpr \hsize / 4 - \tuckloss - 0,666 \rulewidth \relax}\relax</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
\setbox 2 = \vbox {\XeTeXpdffile \source page 2 width \dimexpr \hsize / 4 - 0,666 \rulewidth \relax}\relax</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
\setbox 3 = \vbox {\XeTeXpdffile \source page 3 width \dimexpr \hsize / 4 - 0,666 \rulewidth \relax}\relax</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
\setbox 4 = \vbox {\XeTeXpdffile \source page 4 width \dimexpr \hsize / 4 - \tuckloss \relax}\relax</p>
</blockquote>
<br>
If the final line of the immediately preceding is commented out, the document compiles with success.  It is therefore clear that the problem lies not with "./Hoi-An vegan menu (separate pages).pdf"
<i>per se</i>, but rather with the assumption that "./Hoi-An vegan menu (separate pages).pdf" contains four or more pages.  It would therefore be very helpful if XeTeX/xdvipdfmx could report that the problem occurred when trying to access page 4, rather than
 merely stating that « Image inclusion failed for "./Hoi-An vegan menu (separate pages).pdf" ».<br>
-- <br>
<i>Philip Taylor</i><br>
<br>
<br>
<br>
<br>
<p>This email, its contents and any attachments are intended solely for the addressee and may contain confidential information. In certain circumstances, it may also be subject to legal privilege. Any unauthorised use, disclosure, or copying is not permitted.
 If you have received this email in error, please notify us and immediately and permanently delete it. Any views or opinions expressed in personal emails are solely those of the author and do not necessarily represent those of Royal Holloway, University of
 London. It is your responsibility to ensure that this email and any attachments are virus free.</p>
<p></p>


</div></blockquote></div></body></html>