summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-06-21 16:24:30 +0200
committerTor Andersson <tor@ghostscript.com>2010-06-21 16:24:30 +0200
commit57a151c204fed4935a11aa3fb2340df359d9c115 (patch)
tree2bce2a8148ad9a0d3a912f26d6debfd5b235185b
parent17d2a8b03562410e644d55c0452c63c142d9b333 (diff)
downloadmupdf-57a151c204fed4935a11aa3fb2340df359d9c115.tar.xz
Ignore PostScript style XObjects instead of bailing.
-rw-r--r--mupdf/pdf_interpret.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mupdf/pdf_interpret.c b/mupdf/pdf_interpret.c
index 8ee794cd..63516572 100644
--- a/mupdf/pdf_interpret.c
+++ b/mupdf/pdf_interpret.c
@@ -578,6 +578,11 @@ Lsetcolorspace:
pdf_dropimage(img);
}
+ else if (!strcmp(fz_toname(subtype), "PS"))
+ {
+ fz_warn("ignoring XObject with subtype PS");
+ }
+
else
{
return fz_throw("unknown XObject subtype: %s", fz_toname(subtype));