[cups.development] Re: Simple accounting filter/backend (With Perl or another script language)

Jerome Alet alet at librelogiciel.com
Wed Oct 27 09:38:17 PDT 2004


Nayco(.free.fr) wrote:
> Jerome Alet wrote:
> > Not sure if I understand correctly (I don't know PostScript at all), but I think the procedure should be called for each page, because one can imagine a document asking for 2 copies of page 1, 35 copies of page 2, then 1 copy of page 3.
>
> Arg. So the snippet in my last post is totally false huh ?
> Not many softs permit such jobs (I don't even know one), but anyway my code is flawed.
>
> I gonna take a look to Pykota's code soon ;°p...

Don't worry, PyKota doesn't handle this sort of things for PostScript.
I just said this because I think some jobs like that are possible,
but I've never seen one myself.

For now, the PostScript parser uses max(1, max(allnumcopiesseen)) as the global number of copies, and multiplies by number of pages. This may overcharge the user, but at least not undercharge and that's what we want ;-)

PyKota's PCL parsers (3,4,5, and then XL/6) correctly handle this on a page per page basis though, excepted if the number of copies is set not in PCL but in PJL instead (this will be fixed some day)

As you can see, it's a difficult problem... (and PJL can appear in ostScript too if I'm not mistaken)

Jerome Alet




More information about the cups mailing list