summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-stream.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-02-26 15:16:34 +0100
committerRobin Watts <robin.watts@artifex.com>2015-03-24 13:42:44 +0000
commite0f638b398b2362f5843ea0c1907f678cfa8e278 (patch)
tree0f771d162c7f2c18f18bb12c8be86cdca06aaaeb /source/pdf/pdf-stream.c
parent4b3c02180d49403a4e477e494ed233ac2c672bd8 (diff)
downloadmupdf-e0f638b398b2362f5843ea0c1907f678cfa8e278.tar.xz
Don't pass interpreter context to pdf_processor opcode callbacks.
Update buffer and filter processors. Filter both colors and stroke states. Move OCG hiding logic into interpreter.
Diffstat (limited to 'source/pdf/pdf-stream.c')
-rw-r--r--source/pdf/pdf-stream.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/pdf/pdf-stream.c b/source/pdf/pdf-stream.c
index 2335e67a..15fdd29a 100644
--- a/source/pdf/pdf-stream.c
+++ b/source/pdf/pdf-stream.c
@@ -620,6 +620,5 @@ pdf_open_contents_stream(fz_context *ctx, pdf_document *doc, pdf_obj *obj)
if (pdf_is_stream(ctx, doc, num, gen))
return pdf_open_image_stream(ctx, doc, num, gen, num, gen, NULL);
- fz_warn(ctx, "pdf object stream missing (%d %d R)", num, gen);
- return NULL;
+ fz_throw(ctx, FZ_ERROR_GENERIC, "pdf object stream missing (%d %d R)", num, gen);
}