Need username printed at top of page

Patrick Young pyoung at judgememorial.com
Fri Mar 16 17:08:18 PDT 2007


I was able to get the alternate pstops.c file to compile into my installation of CUPS. I added the following to my /etc/cups/lpoptions file and now I see the boxes on top and bottom of the pages:

Dest labone page-label="Username goes here"

So step 1 is working, a page-label is showing up on each page. Now how do I get the page-label to print the username of the job??? And how can I tweak the page-label text size (want it smaller) and maybe remove the bottom page-label so it's only on top? And in a perfect world, can I add a couple things to the label, like date and printer description field?

Getting closer! Thank you Helge for your help!
--Patrick

> If it's not too much trouble would you please email me the linux binary? I'll start with that. If I can't get it to work then I'll build using the full source. My email is pyoung[(at)]judgememorial[(dot)]com.
>
> Thank you very much!
> --Patrick
>
> > Patrick Young wrote:
> > > Hello Helge,
> > >
> > > I found Alternate Pstops 1.93n in the Links section. Is it possible to compile that pstops.c file by itself with gcc or do I need to build CUPS from source with that file?
> > >
> > > If I can just use gcc, um, what's the command? Or does someone already have the alternate pstops file compiled for x86 they can send me?
> > >
> > > Lastly, the text file says the alternate pstops is based on CUPS 1.1.18. Will I run into problems dropping that pstops file into CUPS 1.2.7?
> > >
> > > Thank you very much for your help!
> > > --Patrick
> > >
> > >
> > >>Patrick Young wrote:
> > >>
> > >>>I've googled and searched the forums. So far no suggestion has worked for me. I have Mac OS 10.4.8 clients printing via IPP to a Fedora Core 6 box running CUPS v1.2.7 (release 1.8.fc6). CUPS connects to the printers via the socket backend. I installed CUPS using Fedora's RPMs.
> > >>>
> > >>>I need all print jobs destined for one particular printer to have the username printed at the top of every page (for example, top left in small font). Banners before or after a print job aren't what I'm after. I'd like this to be done on the CUPS server if possible so client users can't fiddle with the setting in their accounts.
> > >>>
> > >>>Can anyone please guide me? I don't know Postscript or any printer languages. But I can follow detailed instructions. :-)
> > >>>
> > >>>Thank you for any help you can give!
> > >>>--Patrick
> > >>
> > >>With the "alternate pstops filter" you may use the
> > >>extended pae-label option in combination with a lpoptions file.
> > >>
> > >>Helge
> > >>
> > >>--
> > >>Helge Blischke
> > >>Softwareentwicklung
> > >>
> > >>H.Blischke at acm.org
> > >
> > >
> > You'll need a CUPS source tarball to compile this filter;
> > I suppose the version does not really matter (if it is greater than
> > 1.1.17).
> > I could send you a linux binary if needed.
> >
> > Helge
> >
> >
> > --
> > Helge Blischke
> > Softwareentwicklung
> >
> > H.Blischke at acm.org
>





More information about the cups mailing list