[XeTeX] Fwd: Protecting pdfpages \includepdf against broken PDF

Jérôme Etévé jerome.eteve at gmail.com
Fri Jan 14 20:05:49 CET 2011


---------- Forwarded message ----------
From: Jérôme Etévé <jerome.eteve at gmail.com>
Date: 14 January 2011 19:05
Subject: Re: [XeTeX] Protecting pdfpages \includepdf against broken PDF
To: Alan Munn <amunn at gmx.com>


On 14 January 2011 19:01, Alan Munn <amunn at gmx.com> wrote:
> On Jan 14, 2011, at 1:53 PM, Jérôme Etévé wrote:
>
>> Hi All,
>>
>> I'm using pdfpages to include user uploaded PDF documents into a
>> larger latex document, and I'm constantly experiencing problem with
>> invalid PDF files (They are invalid in all sorts of ways)
>>
>> Is there a way to protect pdfpages against such invalid files?
>> Alternatively, is there a quick way to test a pdf file for correctness
>> before I include it in my latex document?
>
> Didn't Heiko Oberdiek give you a solution to this problem earlier?

It was a solution for invalid xref tables, but it turns out that
there's many other ways a pdf file can be invalid :(

> On Dec 22, 2010, at 6:12 PM, Heiko Oberdiek wrote:
>
>> * Or run the file through pdftk to generate a fixed pdf file:
>>    pdftk matrix-broken.pdf cat output matrix-fixed.pdf
>
>
> Alan
>
> --
> Alan Munn
> amunn at gmx.com
>
>
>
>
>



--
Jerome Eteve.

http://libsquare.net



-- 
Jerome Eteve.

http://libsquare.net



More information about the XeTeX mailing list