🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #258

Re: Parsing the postscript content

#258
From: DBW
Date: Thu, 02 Mar 2006 18:54
22 lines
1650 bytes
In article <1140170414.573596.279720@o13g2000cwo.googlegroups.com>,
"apondu" <apondu@gmail.com> wrote:

> Hi,
> 
> I am trying to extract the text content of the postscript file and put
> it into to a text file, in simple words i am trying to parse the
> postscript files. Can anyone suggest or provide the code or the dll
> which does this. I am using the C#.Net for my parsing.
> 
If you have a long text editor with a Grep Search and Replace facility you
can extract the ascii text between the ( and ) PS delimiters by using:

Find (.[^\(]*)\((.[^\)]*)
Replace \2  \r

Note the space before \r
However, much DTP software produces binary or octal PS files and the only
way is to distill the original PS into PDF and use OCR to extract the
text.

DB-W
Technical Details
Message-ID: <byram-0203061854360001@10.0.0.5>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!NewsWatcher!user
References: <1140170414.573596.279720@o13g2000cwo.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10c61a,4e15ed28d2d10f4f
X-Google-Attributes: gid10c61a,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!NewsWatcher!user
From: byram@cappella.demon.co.uk (DBW)
Newsgroups: adobe.postscript.programming
Subject: Re: Parsing the postscript content
Date: Thu, 02 Mar 2006 18:54:36 +0000
Organization: Cappella Archive
Lines: 22
Message-ID: <byram-0203061854360001@10.0.0.5>
References: <1140170414.573596.279720@o13g2000cwo.googlegroups.com>
NNTP-Posting-Host: cappella.demon.co.uk
X-Trace: news.demon.co.uk 1141325675 5337 80.177.121.170 (2 Mar 2006 18:54:35 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Thu, 2 Mar 2006 18:54:35 +0000 (UTC)