summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-colorspace.c
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2017-07-26 23:06:07 -0700
committerRobin Watts <robin.watts@artifex.com>2017-10-24 15:16:34 +0100
commitfee66b72d296ecdd9654109c31e9dbfa4811d034 (patch)
tree0ca19bbeed8aa6e385ef23fe3d3a5a8207630ca7 /source/pdf/pdf-colorspace.c
parent8080868ad41df95ba376bd451612fcb23a4a3daf (diff)
downloadmupdf-fee66b72d296ecdd9654109c31e9dbfa4811d034.tar.xz
Logic for Sep and DeviceN colorspaces with C,M,Y, or K.
Special care is required when the DeviceN color space has cyan, magenta, yellow or black. For example, even if we support separations in the destination, if the color space has CMY or K as one of its colorants and we are drawing to an RGB or Gray pixmap we will want to do the tint transform. Also if the pixmap has no seps memember present, we support the separations if the destination is CMYK and the DeviceN colorspace has no "Spot" (non-CMYK) colorants.
Diffstat (limited to 'source/pdf/pdf-colorspace.c')
-rw-r--r--source/pdf/pdf-colorspace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-colorspace.c b/source/pdf/pdf-colorspace.c
index 4f910de3..8dec434e 100644
--- a/source/pdf/pdf-colorspace.c
+++ b/source/pdf/pdf-colorspace.c
@@ -204,7 +204,7 @@ load_devicen(fz_context *ctx, pdf_obj *array)
devn->base = fz_keep_colorspace(ctx, base); /* We drop it during the devn free... */
devn->tint = tint;
- cs = fz_new_colorspace(ctx, colorspace_name, n, 1, 1,
+ cs = fz_new_colorspace(ctx, colorspace_name, n, 1, FZ_DEVICE_N_SPOTS_ONLY,
fz_colorspace_is_icc(ctx, fz_device_rgb(ctx)) ? devicen_to_alt : devicen_to_rgb, NULL, base_devicen, NULL, free_devicen, devn,
sizeof(struct devicen) + base->size + pdf_function_size(ctx, tint));