Cutting an ASCII text file every # lines

Helge Blischke h.blischke at srz.de
Wed Feb 9 04:51:48 PST 2005


paul.tavernier at ac-rouen.fr wrote:
> 
> Hello everybody,
> 
> Newbie to cups'way of printing, we have an urgent need (was formerly working perfectly with AIX ;o)):
> We want to make a CUPS printer (class? driver?) cutting an ASCII text file every 40 lines. It has to potentially work on any type of printer (ESC/P2, PCL, PS...).
> These printing outputs are produced by a (stupid) binary software which produces a "title header" every 40 lines, w/o any way to change it.
> 
> Is there an elegant way to do such things with cups (or ghostscript? or lpoptions?)...Ouch! Headache is coming back ;o)
> 
> Heeeelp...Thanks for any tips

What about defining this printer as a "raw-only" printer (i.e. no fancy
things
like prettyprint, number-up, etc.) and using a wrapper script that calls
the
nice old pr utility (pr -n40 ...) as a filter activated by the PPD
(*cupsFilter: )?

Helge

-- 
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de
tel: +49 30 75301-360




More information about the cups mailing list