summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-10-22 16:40:38 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-10-23 18:46:01 +0200
commitde23359d50364c20789f771ddf6616eb6dcdb45f (patch)
tree26253999d5cf1c30a15b621a28b6bcdfdb4b1f00 /source
parent351c99d8ce23bbf7099dbd52771a095f67e45a2c (diff)
downloadmupdf-de23359d50364c20789f771ddf6616eb6dcdb45f.tar.xz
Use DeviceGray colorspace for soft masks in pdfwrite output.
Diffstat (limited to 'source')
-rw-r--r--source/pdf/pdf-image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/pdf/pdf-image.c b/source/pdf/pdf-image.c
index 28e02db8..03b68799 100644
--- a/source/pdf/pdf-image.c
+++ b/source/pdf/pdf-image.c
@@ -506,6 +506,7 @@ raw_or_unknown_compression:
pdf_array_push_string(ctx, arr, (char *) lookup, basen * (high + 1));
}
break;
+ case FZ_COLORSPACE_NONE:
case FZ_COLORSPACE_GRAY:
pdf_dict_put(ctx, imobj, PDF_NAME(ColorSpace), PDF_NAME(DeviceGray));
break;