[cups] turning off fit-to-page

Gary Dale gary at extremeground.com
Thu Jan 25 07:30:44 PST 2024


On 2024-01-22 10:51, Douglas Kosovic wrote:
> On 2024-01-04 09:32, Gary Dale wrote:
>> I will also note that running "lpoptions -l" never shows the
>> "fit-to-page" setting but it does confirm that my default paper size
>> is "letter". Nor is there a "fit to page" setting through the CUPS
>> printer management page (<servername>:631). However, I used to print
>> unscaled documents to this printer (just not through Gwenview which
>> doesn't have a print full size & crop option, which was why I
>> originally started trying to use lp).
>>
>> Is there a way I can get this to work?
> I suspect the old "-o fit-to-page=off" option has been superseded by the "-o print-scaling=none" standard IPP Everywhere option.
>
> Extract from https://github.com/OpenPrinting/cups-filters/issues/108 :
>
> "none: do not scale the document to fit the requested media size. If the document is larger than the requested media, center and clip the resulting output. If the document is smaller than the requested media, center the resulting output."
>
> There is more discussion about the "-o print-scaling=none" option here with JPEG images:
> https://github.com/OpenPrinting/cups-filters/issues/362
>
>
> Cheers,
> Doug
Thanks Doug. That seems to work. It looks like the option could take a 
variety of useful parameters, but a look at the IPP everywhere protocol 
seems to dash that hope. It would be nice if the developers would 
document how lp currently works...


More information about the cups mailing list