summaryrefslogtreecommitdiff
path: root/pdf/pdftop.c
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2021-09-01 13:56:54 +0100
committerKen Sharp <ken.sharp@artifex.com>2021-09-01 13:56:54 +0100
commit1981ae3aded48d965bc24afaa4a2cac03e3567f7 (patch)
tree4a8a914ac1b7cdf7315629578c6e146c72b9ee72 /pdf/pdftop.c
parentc62817bb4c0b36dd07c27977faa9226f2a754052 (diff)
downloadghostpdl-1981ae3aded48d965bc24afaa4a2cac03e3567f7.tar.gz
GhostPDF - implement NOSUBSTDEVICECOLORS
This implements the 'NOSUBSTDEVICECOLORS' switch in GhostPDF. When set any Default* colour spaces in the input PDF file are not used as replacements for the Device* colour spaces.
Diffstat (limited to 'pdf/pdftop.c')
-rw-r--r--pdf/pdftop.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pdf/pdftop.c b/pdf/pdftop.c
index 66baf722a..feb8e8b3e 100644
--- a/pdf/pdftop.c
+++ b/pdf/pdftop.c
@@ -655,6 +655,11 @@ pdf_impl_set_param(pl_interp_implementation_t *impl,
if (code < 0)
return code;
}
+ if (!strncmp(param, "NOSUBSTDEVICECOLORS", strlen("NOSUBSTDEVICECOLORS"))) {
+ code = plist_value_get_bool(&pvalue, &ctx->args.NOSUBSTDEVICECOLORS);
+ if (code < 0)
+ return code;
+ }
if (!strncmp(param, "UseOutputIntent", strlen("UseOutputIntent"))) {
code = plist_value_get_string_or_name(ctx, &pvalue, &ctx->args.UseOutputIntent, &len);
if (code < 0)