cups-filters icon indicating copy to clipboard operation
cups-filters copied to clipboard

Epson receipt printing regression after update 1.27.4 > 1.28.15 (Ubuntu 20.04 > 22.04) from pdftopdf resizing output

Open richud opened this issue 1 year ago • 1 comments

Hi, I updated Ubuntu 20.04 to 22.04 thus updating (cups-filters 1.27.4 > 1.28.15) and receipt printing has 'broken';

To accomodate long receipts, the printer (Epson TM-T20 w/epsonsimplecups driver) has the default paper size set to 80mm x 2000mm. i.e. most of the time a standard receipt is perhaps 80x56mm, but could easily be ten times longer. The receipt is generated as a .pdf from the backend system, and passes though the first cups filter pdftopdf (1.27.4), with no options set, unchanged, remaining at this size, and prints fine on to a 80x56mm piece of receipt paper which is auto cut by the printer. This seems logical, no options set, don't change anything.

The newer pdftopdf (1.28.15) in Ubuntu 22.04 , without any options set, resizes the ouput to the full paper size and centres - thus the output creates a 2m long page and puts the receipt in the middle, which isn't ideal.

The changes have happened in /filter/pdftopdf/pdftopdf_processor.cc , probably refactoring its behaviour around ~1.28.13.

Is it possible to 'fix' the logic to revert to the previous behaviour, or at least have an option so no resizing, scaling or cropping is done, perhaps print-scaling=none ?

richud avatar May 12 '23 21:05 richud