From: Michael R Sweet Date: Tue, 21 Jan 2025 14:58:15 +0000 (-0500) Subject: Don't send copies for raster jobs. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=883f80f4abf482da7a4ce8c17cfb22d2802f48cd;p=thirdparty%2Fcups.git Don't send copies for raster jobs. --- diff --git a/backend/ipp.c b/backend/ipp.c index 9f783b8598..894f86536e 100644 --- a/backend/ipp.c +++ b/backend/ipp.c @@ -1,7 +1,7 @@ /* * IPP backend for CUPS. * - * Copyright © 2021-2024 by OpenPrinting + * Copyright © 2021-2025 by OpenPrinting * Copyright © 2007-2021 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * @@ -2958,6 +2958,10 @@ new_request( fputs("DEBUG: Adding all operation/job attributes.\n", stderr); num_options = adjust_options(num_options, &options); + + if (!strcmp(format, "image/pwg-raster") || !strcmp(format, "image/urf")) + num_options = cupsRemoveOption("copies", num_options, &options); + cupsEncodeOptions2(request, num_options, options, IPP_TAG_OPERATION); cupsEncodeOptions2(request, num_options, options, IPP_TAG_JOB); }