🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #3369

Re: PostScript to ASCII utility

#3369
From: Geoffrey H. Cooper
Date: Tue, 16 Oct 1990 22:39
34 lines
1490 bytes
In article <1151@digi.lonestar.org> mdefelic@digi.lonestar.org (Mitch DeFelice) writes:
>Help!!!!  I'am looking for a PostScript to ASCII utility. If 
>one doesn't exist, could someone point me to the proper
>documentation that would allow me to write one myself.
>
>Any response would be appreciated.

ANY response.... **ANY** response....?  OK....

Hmm... this is a tough one.  I suggest that you get GhostScript 2.0 and
hack the driver.  Maybe:

	...
	bp = bitmap;
	for ( height = 0; height < 3300; height++ ) {
	    for ( width = 0; width < (2550+7)/8; width++ ) {
		b = *bp++;
		for ( mask = 0x80; mask != 0; mask >>= 1 ) {
		    putchar((mask & b) ? '@' : ' ');
		}
	    }
	    putchar('\n');
	}
	...

That should give you postscript output that you can print on an ASCII
printer.  It may be hard to find one that prints 2550 columns on a
line, though.

Now, if you were looking for an ASCII to Postscript filter...

- Geof
-- 
geof@aurora.com / aurora!geof@decwrl.dec.com / geof%aurora.com@decwrl.dec.com
Technical Details
Message-ID: <1990Oct16.223900.15229@aurora.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!fernwood!aurora!geof
References: <1151@digi.lonestar.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!fernwood!aurora!geof
From: geof@aurora.com (Geoffrey H. Cooper)
Newsgroups: comp.lang.postscript
Subject: Re: PostScript to ASCII utility
Message-ID: <1990Oct16.223900.15229@aurora.com>
Date: 16 Oct 90 22:39:00 GMT
References: <1151@digi.lonestar.org>
Reply-To: geof@aurora.UUCP (Geoffrey H. Cooper)
Organization: The Aurora Group, Palo Alto, CA
Lines: 34