Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jul 1997 14:24:47 -0700 (PDT)
From:      Annelise Anderson <andrsn@andrsn.stanford.edu>
To:        Simon N Atkin <simat@enta.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Postscript to text conversion ??
Message-ID:  <Pine.BSF.3.96.970728141700.19259A-100000@andrsn.stanford.edu>
In-Reply-To: <33DCED69.57AB@enta.net>

next in thread | previous in thread | raw e-mail | index | archive | help


On Mon, 28 Jul 1997, Simon N Atkin wrote:

> Hi,
> 
> does anyone know how to convert a standard postscript
> document in to ascii text, i.e files with the .ps extension,
> as some documents that come with some ports only have
> documentation in .ps format.

ps2ascii does a pretty good job; it comes with ghostscript.
> 
> also whilst we are on the subject, does anyone know how to
> strip out the vt codes in special text, i.e the vt characters
> that give certain words a color when catted. (printing of manpages)
> If you just print this text staight to the printer then we 
> get some characters twice.

Pipe it through col -b.  E.g., man chmod | col -b > chmod.txt
Or cat file | col -b > outfile

	Annelise

> 
> Cheers
> 
> 
> Simon Atkin (simat@enta.net) :)
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970728141700.19259A-100000>