[cups.general] CUPS filtering
pipitas
k1pfeifle at gmx.net
Wed Dec 22 05:59:47 PST 2004
Pascal DeMilly wrote:
> I have a legacy system that prints report in ascii only. I setup a cups
> server with a raw printer that basically mpage that ascii file into a PS
> (using -i script of lpadmin) and send the result to another CUPS printer
> which is a laserjet.
Is there any particular reason why you don't just install a standard
"laserjet"-like printqueue with the laserjet.ppd provided by CUPS?
lpadmin -p fs1-offc-1-lnx -v usb:/dev/usb/lp0 -m laserjet.ppd.gz -E
Should give you a queue that prints ASCII input just fine. It would use
a filtering chain of
texttops|pstops|pstoraster|rastertohp
You can control output appearance f.e. with various commandline paramters:
"-o page-left=72" (gives a left margin of 1 inch),
"-o prettyprint" (syntax highlighting for certain file types),
"-o number-up=4" (4 pages on one sheet),
"-o lpi=8" (8 lines per inch),
"-o cpi=15" (15 characters per inch),
"-o page-border=simple-think" (print a 1 pt frame around page)
You can find some more print options for text files at
http://localhost:631/sum.html#4_4
Cheers,
Kurt
More information about the cups
mailing list