🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #4765

Re: want postscript to text filter

#4765
From: Vidiot
Date: Tue, 19 Feb 1991 04:28
26 lines
1882 bytes
In article <715@pdxvme.pdx.csd.mot.com> dean@pdx.csd.mot.com (Dean Hall) writes:
<Application output is only available as postscript, but I need ascii text.
<Don't have access to application source.  Output will be relatively simple;
<similiar to letters and memos.

This question gets asked all the time.  The basic that keeps getting posted
is that it can't be done.

PostScript can be a very complicated beast.  If the output is from a word
processing package of any sort, there is always a PostScript prolog that
describes many user defined procedures that determine how the output will
be formatted.  To even get any kind of text output requires a full PostScript
interpreter.  You just can't strip away the PostScript code and leave the
actual characters behind.  Why?  Because then you have no idea where on the
page they go.

If you need ASCII text, get the application to give you ASCII text output.
Many applications will give you pure text, unformatted.

Talk to the author of GhostScript and see if he will add text output to what
he has now (if he hasn't done it already).  This is the only possibility
that I can think of that is even close to doing something like what you want.
-- 
      harvard\     att!nicmad\          spool.cs.wisc.edu!astroatc!vidiot!brown
Vidiot  ucbvax!uwvax..........!astroatc!vidiot!brown
      rutgers/  decvax!nicmad/ INTERNET:vidiot!brown%astroatc@spool.cs.wisc.edu
Technical Details
Message-ID: <1412@vidiot.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!uwvax!astroatc!vidiot!brown
References: <715@pdxvme.pdx.csd.mot.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!uwvax!astroatc!vidiot!brown
From: brown@vidiot.UUCP (Vidiot)
Newsgroups: comp.lang.postscript
Subject: Re: want postscript to text filter
Keywords: postscript filter text
Message-ID: <1412@vidiot.UUCP>
Date: 19 Feb 91 04:28:42 GMT
References: <715@pdxvme.pdx.csd.mot.com>
Reply-To: brown@vidiot.UUCP (Vidiot)
Distribution: usa
Organization: Vidiot's Hangout
Lines: 26