summaryrefslogtreecommitdiff
path: root/devices/gdevtsep.c
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2020-07-25 08:29:31 +0100
committerChris Liddell <chris.liddell@artifex.com>2020-07-29 16:21:51 +0100
commit89bba350f5724b034753c4febfc559afad835d5c (patch)
tree4b167110dd1aa98fa5fcfcee206daf409bb2306d /devices/gdevtsep.c
parent9beae99074655cf78729d5e26862f00cea11b109 (diff)
downloadghostpdl-89bba350f5724b034753c4febfc559afad835d5c.tar.gz
Defeat ICC component validation for nullpage device
Further to commit 4a3441bdde7060ecc9048bf391977412a82063a8, it turns out that, in practice, we can't completely ignore the ICC profile device parameters, parameters that have an immediate effect on the device are also validated during put_params and thus, for those, validation can still fail. Using gxdso_supports_devn allows us to defeat the profile component validation, but nullpage is not a DeviceN device, hence that could cause confusion. Using a dedicated gxdso_skip_icc_component_validation allows us to be more selective about when to short circuit those tests, and avoid confusion. This is required for gpdl as Postscript initialisation is slightly different compared to regular Ghostscript - the nulldevice remains in play all through Postscript initialisation (rather than being replaced with the device specified by the command arguments part way through initialisation).
Diffstat (limited to 'devices/gdevtsep.c')
-rw-r--r--devices/gdevtsep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/devices/gdevtsep.c b/devices/gdevtsep.c
index b6f258a7c..3dde35234 100644
--- a/devices/gdevtsep.c
+++ b/devices/gdevtsep.c
@@ -508,7 +508,8 @@ tiff_set_icc_color_fields(gx_device_printer *pdev)
static int
tiffsep_spec_op(gx_device *dev_, int op, void *data, int datasize)
{
- if (op == gxdso_supports_iccpostrender || op == gxdso_supports_devn) {
+ if (op == gxdso_supports_iccpostrender || op == gxdso_supports_devn
+ || op == gxdso_skip_icc_component_validation) {
return true;
}
return gdev_prn_dev_spec_op(dev_, op, data, datasize);