summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2008-12-09 13:40:38 +0100
committerTor Andersson <tor@ghostscript.com>2008-12-09 13:40:38 +0100
commit72388ba32965c51a424836f8daad70c156b378d6 (patch)
tree54006db373ab94895f5c55fec28364716bf767fe
parent230f5a0a5f7b80129b78b4a96094944ba3ef9df2 (diff)
downloadmupdf-72388ba32965c51a424836f8daad70c156b378d6.tar.xz
Ignore errors where the endobj keyword is missing and print a warning instead. Workaround for broken LaTeX or PDF PT 2.37 (pdf-tools.com) generated files.
-rw-r--r--mupdf/pdf_parse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mupdf/pdf_parse.c b/mupdf/pdf_parse.c
index 9f30e061..db49daf7 100644
--- a/mupdf/pdf_parse.c
+++ b/mupdf/pdf_parse.c
@@ -445,8 +445,7 @@ skip:
stmofs = 0;
else
{
- error = fz_throw("expected endobj or stream keyword");
- goto cleanup;
+ fz_warn("expected endobj or stream keyword (%d %d R)", oid, gid);
}
if (ooid) *ooid = oid;