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

2008-11-12 Thread Massimo Del Fedele
Huw Davies ha scritto: > > The correct way is to fix winspool and friends to use schedule_cups() > which in turn uses cupsPrintFile(). Detlef could probably comment on > how far away we are from using this. > > Huw. > > Well, so I guess I'll keep the patch in my tree to make Autocad happi

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

2008-11-12 Thread Huw Davies
Massimo Del Fedele wrote: > Steven Edwards ha scritto: >> On Wed, Nov 12, 2008 at 12:51 PM, Massimo Del Fedele <[EMAIL PROTECTED]> >> wrote: >>> The best way would be, of course, replace ALL LPR code with direct cups >>> calls. It's feasible, but it requires some refactoring of all printing >>> co

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

2008-11-12 Thread Massimo Del Fedele
Steven Edwards ha scritto: > On Wed, Nov 12, 2008 at 12:51 PM, Massimo Del Fedele <[EMAIL PROTECTED]> > wrote: >> The best way would be, of course, replace ALL LPR code with direct cups >> calls. It's feasible, but it requires some refactoring of all printing >> code. For example, what's now >>

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

2008-11-12 Thread Steven Edwards
On Wed, Nov 12, 2008 at 12:51 PM, Massimo Del Fedele <[EMAIL PROTECTED]> wrote: > The best way would be, of course, replace ALL LPR code with direct cups > calls. It's feasible, but it requires some refactoring of all printing > code. For example, what's now > exec("|lpr -P myPrinter") > w

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

2008-11-12 Thread Massimo Del Fedele
Michael Karcher ha scritto: > Am Mittwoch, den 12.11.2008, 16:41 +0100 schrieb Massimo Del Fedele: > The patch solves it adding "-o PageSize=" to lpr command. Is there something wrong with this one ? >>> Adding parameters to the lpr command this way is ugly and >>> dangerous. There has to

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

2008-11-12 Thread Michael Karcher
Am Mittwoch, den 12.11.2008, 16:41 +0100 schrieb Massimo Del Fedele: > >>> The patch solves it adding "-o PageSize=" to lpr command. > >> 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

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

2008-11-12 Thread Massimo Del Fedele
Alexandre Julliard ha scritto: > Massimo Del Fedele <[EMAIL PROTECTED]> 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=" to lpr command. >>> >>>

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

2008-11-12 Thread Alexandre Julliard
Massimo Del Fedele <[EMAIL PROTECTED]> 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=" to lpr command. >> >> Ciao >> >> Max > > Is there something w

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

2008-11-12 Thread Massimo Del Fedele
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=" to lpr command. > > Ciao > > Max > > >