From: Matthias Kramm Date: Wed, 3 Feb 2010 00:20:52 +0000 (-0800) Subject: allow a pdf file to have broken pages X-Git-Tag: version-0-9-1~167 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=379a5983a25c6f7441f4e983dec5fe0e4f75990a;p=swftools.git allow a pdf file to have broken pages --- 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);