summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-xobject.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/pdf/pdf-xobject.c b/source/pdf/pdf-xobject.c
index 0924e118..648f8d29 100644
--- a/source/pdf/pdf-xobject.c
+++ b/source/pdf/pdf-xobject.c
@@ -86,9 +86,14 @@ pdf_load_xobject(pdf_document *doc, pdf_obj *dict)
obj = pdf_dict_gets(attrs, "CS");
if (obj)
{
- form->colorspace = pdf_load_colorspace(doc, obj);
- if (!form->colorspace)
- fz_throw(ctx, FZ_ERROR_GENERIC, "cannot load xobject colorspace");
+ fz_try(ctx)
+ {
+ form->colorspace = pdf_load_colorspace(doc, obj);
+ }
+ fz_catch(ctx)
+ {
+ fz_warn(ctx, "cannot load xobject colorspace");
+ }
}
}