[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: AW: Fwd: Re: kprinter RFC
From:       Michael Goffioul <goffioul () imec ! be>
Date:       2001-04-10 7:22:33
[Download RAW message or body]

> > There's a tricky thing here. The page selection may or may not be
> > handled
> > by the application. Most of KDE applications doesn't handled page
> > selection.
> > This page selection is then made during PS generation.
> > On the other hand, some print systems (CUPS) can also do page selection
> > on the generated PS.
> > But, when you print to file, the PS file is not
> > sent to the print system, so the page selection can only occur if the
> > application can do it.
> 
> Is it possible to use/tweak CUPS - if available - to "print to file"?
> I once have tweaked lpd (interfaces) to produce files instead of sending the
> output to a printer.

I don't think so. CUPS uses a chain of filters piped together, and the
whole process is managed by the scheduler. You can't change this
behaviour.
Moreover the CUPS system is network transparent, so the CUPS daemon may
be located on another computer, which makes "print-to-file" senseless.

The only thing you can do is to define a "file printer" in CUPS with a
PS driver, which will prints the PS data into a specified file (and it
can't be changed on the fly).

So the "print-to-file" feature is really a matter of Qt PS generation
only. The only thing I can imagine (but I don't know if it is possible)
is to hack the KPrinter code: as the KPrinter class catches the drawing
commands in the KPrinter::cmd() function, maybe it could be possible
to discard all drawing commands until we reach a page to has to be
printed. But probably this will implies other problems.

Bye.
Michael.

-- 
------------------------------------------------------------------
Michael Goffioul		IMEC-DESICS-MIRA
e-mail: goffioul@imec.be	(Mixed-Signal and RF Applications)
Tel:    +32/16/28-8510		Kapeldreef, 75
Fax:    +32/16/28-1515		3001 HEVERLEE, BELGIUM
------------------------------------------------------------------
["goffioul.vcf" (text/x-vcard)]
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic