Skip to content

Commit

Permalink
Prefer PDF again (fixes #42) (#44)
Browse files Browse the repository at this point in the history
PDF works better with finishing, especially combinations of multiple copies, collation, and stapling/binding.
  • Loading branch information
zdohnal authored Jul 30, 2024
1 parent 327b61c commit 168f93d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ppd/ppd-generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,14 @@ ppdCreatePPDFromIPP2(char *buffer, // I - Filename buffer
formatfound = 1;
is_pdf = 1;
}
else if (cupsArrayFind(pdl_list, "application/pdf"))
{
// PDF printer
cupsFilePuts(fp, "*cupsFilter2: \"application/vnd.cups-pdf application/pdf 0 -\"\n");
manual_copies = 0;
formatfound = 1;
is_pdf = 1;
}
#ifdef CUPS_RASTER_HAVE_APPLERASTER
else if (cupsArrayFind(pdl_list, "image/urf") &&
(ippFindAttribute(supported, "urf-supported", IPP_TAG_KEYWORD) != NULL))
Expand Down Expand Up @@ -843,14 +851,6 @@ ppdCreatePPDFromIPP2(char *buffer, // I - Filename buffer
}
}
#endif
else if (cupsArrayFind(pdl_list, "application/pdf"))
{
// PDF printer
cupsFilePuts(fp, "*cupsFilter2: \"application/vnd.cups-pdf application/pdf 0 -\"\n");
manual_copies = 0;
formatfound = 1;
is_pdf = 1;
}
else if (cupsArrayFind(pdl_list, "image/pwg-raster") &&
ippFindAttribute(supported, "pwg-raster-document-type-supported", IPP_TAG_KEYWORD) != NULL &&
(attr = ippFindAttribute(supported, "pwg-raster-document-resolution-supported", IPP_TAG_RESOLUTION)) != NULL)
Expand Down

0 comments on commit 168f93d

Please sign in to comment.