| Chromium, drvless |
DL (splix Samsung SCX-4200) |
PageSize = EnvDL |
A4 page printed |
gstoraster: -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -scupsPageSizeName=A4 |
| Chromium, drvless |
dl_envelope (Canon LBP-1120) |
PageSize = EnvDL |
A4 page printed |
pdftops: Page = 595x842; 14,14 to 581,828 |
| |
|
|
|
|
| Firefox, drvless |
DL (splix Samsung SCX-4200) |
media = iso_dl_110x220mm, PageSize = EnvDL |
DL page printed |
gstoraster: -dDEVICEWIDTHPOINTS=312 -dDEVICEHEIGHTPOINTS=624 -scupsPageSizeName=DL |
| Firefox, drvless |
dl_envelope (Canon LBP-1120) |
media = iso_dl_110x220mm, PageSize = EnvDL |
DL page printed |
pdftops: Page = 312x624; 28,28 to 284,596 |
| Firefox, ippeve |
DL (splix Samsung SCX-4200) |
media = iso_dl_110x220mm, PageSize = EnvDL |
DL page printed |
gstoraster: -dDEVICEWIDTHPOINTS=312 -dDEVICEHEIGHTPOINTS=624 -scupsPageSizeName=DL |
| Firefox, ippeve |
dl_envelope (Canon LBP-1120) |
media = iso_dl_110x220mm, PageSize = EnvDL |
DL page printed |
pdftops: Page = 312x624; 28,28 to 284,596 |
| |
|
|
|
|
| Okular 25.08.0, drvless |
DL (splix Samsung SCX-4200) |
media = DL |
DL page printed |
gstoraster: -dDEVICEWIDTHPOINTS=312 -dDEVICEHEIGHTPOINTS=624 -scupsPageSizeName=DL |
| Okular 25.08.0, drvless |
dl_envelope (Canon LBP-1120) |
media = DL |
A4 page printed |
pdftops: Page = 595x842; 14,14 to 581,828 |
| Okular 25.08.0, ippeve |
DL (splix Samsung SCX-4200) |
media = DL |
DL page printed |
gstoraster: -dDEVICEWIDTHPOINTS=312 -dDEVICEHEIGHTPOINTS=624 -scupsPageSizeName=DL |
| Okular 25.08.0, ippeve |
dl_envelope (Canon LBP-1120) |
media = DL |
A4 page printed |
pdftops: Page = 595x842; 14,14 to 581,828 |
| |
|
|
|
|
| Document Viewer 48.1, drvless |
DL (splix Samsung SCX-4200) |
PageSize = EnvDL |
A4 page printed |
gstoraster: -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -scupsPageSizeName=A4 |
| Document Viewer 48.1, drvless |
dl_envelope (Canon LBP-1120) |
PageSize = EnvDL |
A4 page printed |
pdftops: Page = 595x842; 14,14 to 581,828 |
| Document Viewer 48.1, ippeve |
DL (splix Samsung SCX-4200) |
PageSize = EnvDL |
A4 page printed |
gstoraster: -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -scupsPageSizeName=A4 |
| Document Viewer 48.1, ippeve |
dl_envelope (Canon LBP-1120) |
PageSize = EnvDL |
A4 page printed |
pdftops: Page = 595x842; 14,14 to 581,828 |
Describe the bug
In short, I'm unable to reliably print Envelope DL (E65) page size from Linux when the printer is shared from another CUPS server.
This is a combination of three issues:
media=iso_…,media=NAME,PageSize=NAME, or bothPageSizeonly, no mapping between IPPPageSizeand PPDPageSizeis applied (the mapping is applied only formediaattributes).I have:
PageSize = EnvDLfor both printersCreate-JobAll in all,
PageSize, which is different from the PPDPageSizeand not getting mapped byppd-cachemedia, and by mere coincidence it is mapped to non-AdobeDLfor Samsung PPD (hard-coded in core/fileprinter.cpp)mediaand AdobePageSize, which is correctly handled thanks to b2a002a and b46fac8Who is to blame here, what should be done and where to start? There's a code which treats
mediaandPageSizedifferently (and a special case when both are present in raster handling, which is now skipped due to these two mentioned commits), I assume we can't just treat both equally?