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

Jerome Alet alet at librelogiciel.com
Wed Oct 27 07:16:26 PDT 2004


Helge Blischke wrote:
>
> Yes, Ghostscript ignores the copies attribute. But you may easily
> intercept it
> using a small prologue file fed into gs just before the file in
> question.
> This prolog simply could intercept the setpagedevice operator and look
> for the
> /NumCopies key in the operator's param dictionary.
> Well, to get the old and deprecated use of the /#copies value in
> userdict,
> ask for this in a /BeginPage procedure which needs only be called once.

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.

bye

Jerome Alet





More information about the cups-devel mailing list