From 379a5983a25c6f7441f4e983dec5fe0e4f75990a Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Tue, 2 Feb 2010 16:20:52 -0800 Subject: [PATCH] allow a pdf file to have broken pages --- lib/pdf/xpdf-changes.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/pdf/xpdf-changes.patch b/lib/pdf/xpdf-changes.patch index 0db8a51..affe897 100644 --- a/lib/pdf/xpdf-changes.patch +++ b/lib/pdf/xpdf-changes.patch @@ -1136,3 +1136,14 @@ diff -u -r1.5 -r1.6 for (i = 15; i >= n; --i) { s->buf[i] = s->buf[i-n]; } +--- xpdf/Catalog.cc.orig 2010-02-02 16:17:24.000000000 -0800 ++++ xpdf/Catalog.cc 2010-02-02 16:18:48.000000000 -0800 +@@ -193,7 +193,7 @@ + if (!kids.isArray()) { + error(-1, "Kids object (page %d) is wrong type (%s)", + start+1, kids.getTypeName()); +- goto err1; ++ return start; + } + for (i = 0; i < kids.arrayGetLength(); ++i) { + kids.arrayGetNF(i, &kidRef); -- 1.7.10.4