diff options
author | Tor Andersson <tor@ghostscript.com> | 2008-12-09 13:40:38 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2008-12-09 13:40:38 +0100 |
commit | 72388ba32965c51a424836f8daad70c156b378d6 (patch) | |
tree | 54006db373ab94895f5c55fec28364716bf767fe | |
parent | 230f5a0a5f7b80129b78b4a96094944ba3ef9df2 (diff) | |
download | mupdf-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.c | 3 |
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; |