summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-xref.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-11-15 16:10:03 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-11-16 12:09:20 +0100
commitfa9cd67527ab9994fec917f0f88fc16abb9926a6 (patch)
tree9f533a52350e32b0d778c158fbb4eafbe0d0d12e /source/pdf/pdf-xref.c
parent5ed7e6c29233874a68733cdf075260fe261caa40 (diff)
downloadmupdf-fa9cd67527ab9994fec917f0f88fc16abb9926a6.tar.xz
pdf: Add 'compressed/raw' flag to pdf_add_stream.
Also expose the argument to JS and JNI.
Diffstat (limited to 'source/pdf/pdf-xref.c')
-rw-r--r--source/pdf/pdf-xref.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c
index df3c3254..ccbe4cf6 100644
--- a/source/pdf/pdf-xref.c
+++ b/source/pdf/pdf-xref.c
@@ -2624,7 +2624,7 @@ pdf_add_object_drop(fz_context *ctx, pdf_document *doc, pdf_obj *obj)
}
pdf_obj *
-pdf_add_stream(fz_context *ctx, pdf_document *doc, fz_buffer *buf, pdf_obj *obj)
+pdf_add_stream(fz_context *ctx, pdf_document *doc, fz_buffer *buf, pdf_obj *obj, int compressed)
{
pdf_obj *ind;
if (!obj)
@@ -2632,7 +2632,7 @@ pdf_add_stream(fz_context *ctx, pdf_document *doc, fz_buffer *buf, pdf_obj *obj)
else
ind = pdf_add_object(ctx, doc, obj);
fz_try(ctx)
- pdf_update_stream(ctx, doc, ind, buf, 0);
+ pdf_update_stream(ctx, doc, ind, buf, compressed);
fz_catch(ctx)
{
pdf_drop_obj(ctx, ind);