]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Don't send copies for raster jobs.
authorMichael R Sweet <msweet@msweet.org>
Tue, 21 Jan 2025 14:58:15 +0000 (09:58 -0500)
committerMichael R Sweet <msweet@msweet.org>
Tue, 21 Jan 2025 14:58:15 +0000 (09:58 -0500)
backend/ipp.c

index 9f783b85988411aa66e172a469e68864d7254e3a..894f86536ec403009a9336740e33a56f5ff9f98c 100644 (file)
@@ -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);
     }