Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!wugate!uunet!mcsun!sunic!tut!santra!digiw!petri From: petri@digiw.UUCP (Petri Alhola) Newsgroups: comp.lang.postscript Subject: Re: lp filter for PostScript printers Keywords: lp, PostScript, filter Message-ID: <929@digiw.UUCP> Date: 15 Nov 89 17:33:11 GMT References: <188@softest.UUCP> Reply-To: petri@digiw.UUCP (Petri Alhola) Organization: Digiware , Helsinki Finland Lines: 45 In article <188@softest.UUCP> daves@softest.UUCP (Dave Schneider) writes: >Does anyone have an "lp" filter for PostScript printers that >changes ascii to PostScript and offers access to other PostScript >features such as landscape, font and size selection....? I have made one, that works with system V rel 3.x print spooler in 386/ix ( interactive systems ). The filter is completely system independent and i have used it in bsd 4.3 and dos systems. The filter allows to change font size but not curently change font, becouse it needs font where all characters are same width ( actualy filter does not need, but normal lp programs requires it ). The filter can be used with system V spooler following ways: cat xyzzy | lp -- Produces normal 72 rowpotrait listing cat xyzzy | lp -o-U -- produces two pages of 66 row listing cat xyzzy | lp -o-C -- Directly cat text as postscript to printer If there is intrest for this kind of program i can post source in some newsgroup. Here is option curently implemented in program $ pscat -? pcat 1.2 Text to postscript filter. Author and Copyright Petri Alhola 1987-11-27 -c Cat file as postscript prologue -C Cat all files as direct postscript files -f Set font size to points ( default is 10 ) -k Set number of columns -l Set the left marigin to ( default = 0 ) - Print file in columns 1..9 -n Sets number of lines per page: ( default=72 ) -o Truncates longer lines. default, lines are not truncated -p Set number of lines per page -r Print page rotated 90 degrees ( landscape ) -u Print USA, 66 text line documents -x Set X offset -z read file names from -Z read file names from stdin ----- Combination options ----- -R -r -o -c=92 -f=7 -2 ( Prints 92 col * 79 row , 2 pages ) -U -r -o -c=80 -f=8 -2 ( Prints 92 col * 69 row , 2 pages ) Petri Alhola petri@digiw.fi petri@digiw.uucp