[RESEND] Send page size to cups with lpr command on printing (bug 15942)

Massimo Del Fedele max at veneto.com
Wed Nov 12 09:41:27 CST 2008

Alexandre Julliard ha scritto:
> Massimo Del Fedele <max at veneto.com> writes:
>> Massimo Del Fedele ha scritto:
>>> Print jobs are sent to CUPS without the page size, so they're cropped to 
>>> the default one (usually A4).
>>> The patch solves it adding "-o PageSize=<pagesize>" to lpr command.
>>> Ciao
>>> Max
>> Is there something wrong with this one ?
> Adding parameters to the lpr command this way is ugly and
> dangerous. There has to be a better way to make cups use the correct
> page size.

Staying with LPR code, I could use

        lpoptions -d <printer> -o media=<media>

exec-ing it before starting document, but then the selected media would 
stay there as default for next print jobs (I guess also outside wine's).
Would it be better ?


More information about the wine-devel mailing list