diff --git a/scheduler/job.c b/scheduler/job.c index eb093651d..f6d5f925b 100644 --- a/scheduler/job.c +++ b/scheduler/job.c @@ -1,7 +1,7 @@ /* * Job management routines for the CUPS scheduler. * - * Copyright © 2020-2024 by OpenPrinting. + * Copyright © 2020-2025 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * @@ -9,10 +9,6 @@ * information. */ -/* - * Include necessary headers... - */ - #include "cupsd.h" #include #include @@ -868,6 +864,9 @@ cupsdContinueJob(cupsd_job_t *job) /* I - Job */ goto abort_job; } + if (banner_page || (!strcmp(job->filetypes[job->current_file]->super, "image") && (!strcmp(job->filetypes[job->current_file]->type, "pwg-raster") || !strcmp(job->filetypes[job->current_file]->type, "urf")))) + cupsCopyString(copies, "1", sizeof(copies)); + /* * Build the command-line arguments for the filters. Each filter * has 6 or 7 arguments: