Skip to content

Commit

Permalink
Don't send copies for raster jobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Jan 21, 2025
1 parent 60668b1 commit 883f80f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/ipp.c
Original file line number Diff line number Diff line change
@@ -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.
*
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 883f80f

Please sign in to comment.