add header to print jobs

Vincent R. vincent.roels at ngahr.com
Wed Dec 21 00:23:08 PST 2011


> Vincent R.  wrote:
>
> > Hello,
> >
> > I am facing a problem that is: we send print jobs to a print server which
> > handle the layouts to use based on the print queue sent.
> >
> > for example : we send a print job from a third party software. CUPS should
> > then add an header of 10 lines containing on first line the print queue +
> > the printjob-ID. the 9 remaining lines should contain a 0 (zero) as first
> > character. based on this the print server knows what template to use.
> >
> > is there a way to modify the way cups forward the job to the print server
> > ? I have checked and I couldn't really find a solution that would meet my
> > needs.
> >
> > thanks in advance.
> >
> > Vincent.
>
> Write a little filter (as a Shell-, Perl-, or Python-script) that does just
> what you want and force using of this filter by the PPD line:
> *cupsFilter: "application/vnd.cups-xxx 0 yourfilter"
> where xxx denotes the normal final content type (e.g. postscript for PS
> printers).
>
> Helge
>

Hello Helge,

thank you for your reply. I have no clue how to achieve this, I am not a cups nor a printers guru. I have found some documentation here : http://en.opensuse.org/SDB:CUPS_in_a_Nutshell I will try to figure out how to make such filter but I am a bit worried about the fact that filters are usually used to transform the format of the data sent to the printer.

Vincent.





More information about the cups mailing list