summaryrefslogtreecommitdiff
path: root/base/gsequivc.c
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2022-03-31 11:58:22 -0700
committerMichael Vrhel <michael.vrhel@artifex.com>2022-04-07 17:51:40 -0700
commit276dc19f45bf09c8f1273d01ed5ce7c0161d7369 (patch)
treedc81119e9a4474fe30f7c65e3bb95ecc23362875 /base/gsequivc.c
parentb7b40987730375a571f817ffb75db663734753f3 (diff)
downloadghostpdl-276dc19f45bf09c8f1273d01ed5ce7c0161d7369.tar.gz
-dBlackVector=true/false option added
If set to true, stroke and fill operations that are fills of DeviceGray, DeviceRGB, DeviceCMYK, ICC, or LAB colors will be black. The exception is that white fills will remain white. DeviceN, Separation, shading and pattern fills will remain as is. We use the same structure as the -dBlackText option used to store the color space into the graphic state. This structure has been renamed black_textvec_state from black_text_state to denote this usage, as have other variables.
Diffstat (limited to 'base/gsequivc.c')
-rw-r--r--base/gsequivc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/base/gsequivc.c b/base/gsequivc.c
index 441183ed6..5aea0c73c 100644
--- a/base/gsequivc.c
+++ b/base/gsequivc.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -472,9 +472,9 @@ capture_spot_equivalent_cmyk_colors(gx_device * pdev, const gs_gstate * pgs,
0 /* blend_profile */, 0 /* postren_profile */,
{ {0} } /* rendercond[] */, 0 /* devicegraytok */,
0 /* graydection */, 0 /* pageneutralcolor */,
- 0 /* usefastcolor */, 0 /* blacktext */, 0 /* supports_devn */,
- 0 /* overprint_control */, 0 /* spotnames */,
- 0 /* prebandthreshold */, 0 /* memory */,
+ 0 /* usefastcolor */, 0 /* blacktext */, 0 /* blackvectir */,
+ 0 /* supports_devn */, 0 /* overprint_control */,
+ 0 /* spotnames */, 0 /* prebandthreshold */, 0 /* memory */,
{ 0 } /* rc_header */
};
@@ -502,6 +502,7 @@ capture_spot_equivalent_cmyk_colors(gx_device * pdev, const gs_gstate * pgs,
temp_profile.usefastcolor = false; /* This avoids a few headaches */
temp_profile.blacktext = false;
+ temp_profile.blackvector = false;
temp_profile.prebandthreshold = true;
temp_profile.supports_devn = false;
temp_profile.rendercond[0] = render_cond;