<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Andreas Matthias wrote:<br>
<br>
<blockquote cite="mid:tak608-2u5.ln1@fawkes.hogwarts" type="cite">
<pre wrap="">J�r�me Et�v� wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Is there a way to protect pdfpages against such invalid files?
</pre>
</blockquote>
<pre wrap=""><!---->
No. This cannot be done by a macro package. And neither xetex
nor luatex have a full-fledged pdf parser that would be necessary
for this.
</pre>
<blockquote type="cite">
<pre wrap="">Alternatively, is there a quick way to test a pdf file for correctness
before I include it in my latex document?
</pre>
</blockquote>
<pre wrap=""><!---->
Ghostscript is quite good in spotting errors in pdf files.</pre>
</blockquote>
<br>
<br>
Sometimes I've had a problem like this (but I don't know why) when
processing a pdf with pdfpages --- but AFAIK, it's only occurred when I
use the xelatex engine to process. If I use pdflatex, it works fine.<br>
<br>
The other work-around for the problem pdf file(s) is to re-generate
them via pdftk:<br>
<br>
>> pdftk <YOURFILE>.pdf cat output <YOURNEWFILE>.pdf<br>
<br>
<br>
<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
United in adoration of Jesus,
fr. michael gilmary, mma
Most Holy Trinity Monastery
67 Dugway Road
Petersham, MA 01366-9725
<a class="moz-txt-link-abbreviated" href="http://www.MaroniteMonks.org">www.MaroniteMonks.org</a>
</pre>
</body>
</html>