Question about duplex printing

Albert Astals Cid aacid at kde.org
Tue Jul 25 23:01:41 CEST 2006


A Dimarts 25 Juliol 2006 01:26, Kurt Pfeifle va escriure:
> On Monday 24 July 2006 22:02, Albert Astals Cid wrote:
> > Hi, how can i know if the user selected duplex printing or not in the
> > kdeprint dialog?
>
> No idea... I thought programmers can read + understand the KDEPrint
> code :-)
>
> > I need to know that so i can pass it to poppler to generate the PS
> > accordingly.
>
> Ah.
>
> Well, but I think you need not to know :-)
>
> Poppler (or any other app), as a general rule, should not generate PS
> which is "device specific" like that. Their output should be device
> *independent* as much as possible. {There are exceptions: they'll
> have to take into account the media size that is desired, with the
> appropriate margins ("ImageableArea" in the PPD).} At least if it
> comes to KDEPrint + CUPS -- these do know how to add the duplex code
> to the printfile. {CUPS does this with the help of its builtin
> "pstops" filter, that is also reading the PPD and therefor knows
> which specific [and frequently device-dependent] code to insert so
> that the print device indeed does duplex.
>
> > Or should i always create a non duplex PS and kdeprint will modify it
> > accordingly?
>
> Exactly.

Thanks a lot to both you guys, that's what i wanted to hear :-)

Albert

>
> > I'm not subscribed to the list so please CC me on answers.
>
> Done.
>
> > Thanks
> >
> > Albert
>
> Cheers,
> Kurt


More information about the kde-print mailing list