From 1981ae3aded48d965bc24afaa4a2cac03e3567f7 Mon Sep 17 00:00:00 2001 From: Ken Sharp Date: Wed, 1 Sep 2021 13:56:54 +0100 Subject: 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. --- pdf/pdftop.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pdf/pdftop.c') 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) -- cgit v1.2.1