Skip to content

Commit 3eb66da

Browse files
committed
Prefer sending jobs in Apple Raster instead of in PDF
If a destination printer supports both PDF and Apple Raster, and if it is not a remote CUPS queue, prefer sending the job in Apple Raster, as printers print this more reliably. PDF interpreters in printers are often slow or can easily have bugs. Should fix https://bugs.launchpad.net/bugs/2014976
1 parent 78e2ca2 commit 3eb66da

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

daemon/cups-browsed.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6913,13 +6913,14 @@ on_job_state (CupsNotifier *object,
69136913
}
69146914

69156915
// The priority order for the PDLs is the same as in the
6916-
// PPD generator in cupsfilters/ppdgenerator.c
6916+
// PPD generator in ppd/ppd-generator.c of libppd
69176917
document_format = (char *)malloc(sizeof(char) * 32);
6918-
if (cupsArrayFind(pdl_list, "application/vnd.cups-pdf") ||
6919-
cupsArrayFind(pdl_list, "application/pdf"))
6918+
if (cupsArrayFind(pdl_list, "application/vnd.cups-pdf"))
69206919
strcpy(document_format, "application/vnd.cups-pdf");
69216920
else if (cupsArrayFind(pdl_list, "image/urf"))
69226921
strcpy(document_format, "image/urf");
6922+
else if (cupsArrayFind(pdl_list, "application/pdf"))
6923+
strcpy(document_format, "application/vnd.cups-pdf");
69236924
else if (cupsArrayFind(pdl_list, "image/pwg-raster"))
69246925
strcpy(document_format, "image/pwg-raster");
69256926
else if (cupsArrayFind(pdl_list, "application/PCLm"))

0 commit comments

Comments
 (0)