diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2019-04-01 13:30:57 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2019-04-01 13:30:57 +0100 |
commit | 87e4b35c9fc15434d710f86aa265501cad61c34f (patch) | |
tree | 6bbf17a990039a5e48ecbed2a89e4f108a6b8ece /devices/gdevtsep.c | |
parent | b987c511229ba0b70e6a7691366d530fa8db7444 (diff) | |
download | ghostpdl-87e4b35c9fc15434d710f86aa265501cad61c34f.tar.gz |
Tiff devices - Honour the TIFFDateTime parameter
The TIFFDateTime switch can be used to disable writing the date and
time into the tags of TIFF files. However, the tiffg3, tiffg4, tiffsep
and tiffsep1 devices weren't honouring the parameter.
I believe this also affected the tiff32 and tiff8 devices, all the
tiffscaled devices and teh tiffcrle device.
Although gdevtfax.c read the parameter, it didn't transfer it to the
devcie structure. The tiffsep and tiffsep1 devices didn't even read it.
I can't help thinking that having our tiff support spread over 19
different devices and 3 source files
Diffstat (limited to 'devices/gdevtsep.c')
-rw-r--r-- | devices/gdevtsep.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/devices/gdevtsep.c b/devices/gdevtsep.c index 6a50a4a85..a82af87a1 100644 --- a/devices/gdevtsep.c +++ b/devices/gdevtsep.c @@ -1097,6 +1097,13 @@ tiffsep_put_params(gx_device * pdev, gs_param_list * plist) case 1: break; } + switch (code = param_read_bool(plist, (param_name = "TIFFDateTime"), &pdevn->write_datetime)) { + default: + param_signal_error(plist, param_name, code); + case 0: + case 1: + break; + } switch (code = param_read_bool(plist, (param_name = "PrintSpotCMYK"), &pdevn->PrintSpotCMYK)) { default: param_signal_error(plist, param_name, code); |