logo       

Re: Re: Simple accounting filter/backend (With Perl or another script langu: msg#00044

printing.cups.devel

Subject: Re: Re: Simple accounting filter/backend (With Perl or another script language)

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise