You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The *RequiresPageRegion keyword only applies to input slots, not to manual feed printing. The current cups implementation uses that keyword to decide whether to include the PageRegion code even when doing manual feed printing (where there is no input slot). This requires manual feed print jobs to produce incorrect output in many circumstances (I'm tracking this problem for envelopes right now.)
The issue with RequiresPageRegion is that for printers that do not detect the paper size associated with a given input tray, the page region code is required. For printers that DO have paper tray size detection the input slot code is not required. For manual feed, there is no paper tray/size that can be detected so PageRegion code should always be generated.
Here's the proposed change for emit.c:
{
/*
* Manual feed was selected and/or the input slot selection contains
* PostScript code. Use the PageRegion option...
*/
ppdMarkOption(ppd, "PageRegion", size->name);
/*
RequiresPageRegion does not apply to manual feed so we need to check that we are not doing manual feed
before unmarking Page Region.
*/
if ( !(manual_feed != NULL && strcasecmp(manual_feed->choice, "True") == 0) &&
( (rpr && rpr->value && !strcmp(rpr->value, "False")) ||
(!rpr && !ppd->num_filters) )
)
{
/*
* Either the PPD file specifies no PageRegion code or the PPD file
* not for a CUPS raster driver and thus defaults to no PageRegion
* code... Unmark the PageRegion choice so that we don't output the
* code...
*/
page = ppdFindMarkedChoice(ppd, "PageRegion");
if (page)
page->marked = 0;
}
The text was updated successfully, but these errors were encountered:
Version: 1.1.20
CUPS.org User: david.gelphman
The *RequiresPageRegion keyword only applies to input slots, not to manual feed printing. The current cups implementation uses that keyword to decide whether to include the PageRegion code even when doing manual feed printing (where there is no input slot). This requires manual feed print jobs to produce incorrect output in many circumstances (I'm tracking this problem for envelopes right now.)
The issue with RequiresPageRegion is that for printers that do not detect the paper size associated with a given input tray, the page region code is required. For printers that DO have paper tray size detection the input slot code is not required. For manual feed, there is no paper tray/size that can be detected so PageRegion code should always be generated.
Here's the proposed change for emit.c:
{
/*
* Manual feed was selected and/or the input slot selection contains
* PostScript code. Use the PageRegion option...
*/
The text was updated successfully, but these errors were encountered: