Article View: comp.sys.amiga.applications
Article #14121Re: PostScript Help!
From: A.P. Suggitt
Date: Fri, 08 Aug 1997 00:00
Date: Fri, 08 Aug 1997 00:00
54 lines
2626 bytes
2626 bytes
Matt Parker (matt@mparker.demon.co.uk) wrote:
> Can anyone tell me what I need to convert a postscript file to a
> normal Amiga readable format. I used ghostscript to convert it
> from pdf, with more hassle than I ever want to repeat, but it is
> still not very readable, as in loads of characters etc between the
> words.
>
As you already have ghostscript you also have the means to save out the
text part of the ps file.
The following is a modification of Ghostscript:batch/ps2ascii (a batch
file for an obscure shell) to work with ADos.
ps2ascii (s flag set)
------------------------>&-----------------------------
.key PSFILE,OUTFILE
. Extract ASCII text from a PostScript file. Usage:
. ps2ascii [infile.ps [outfile.txt]]
. If outfile is omitted, output goes to stdout.
. If both infile and outfile are omitted, ps2ascii acts as a filter,
. reading from stdin and writing on stdout.
. Additionally use OUTFILE=file will process stdin to file
.bra {
.ket }
.def PSFILE "-"
Stack 32000
if "{OUTFILE}" EQ "" ; PSFILE - STDOUT
gs -q -dNODISPLAY -dNOBIND -dWRITESYSTEMDICT -dSIMPLE -c save
-f ps2ascii.ps {PSFILE} -c quit
else
gs -q -dNODISPLAY -dNOBIND -dWRITESYSTEMDICT -dSIMPLE -c save
-f ps2ascii.ps {PSFILE} -c quit >{OUTFILE}
endif
------------------------>&-----------------------------
Note the lines starting -f must be joined to the gs lines I have also
added a space at the begining of each line.
Also the resultant text will require reformatting in a text editor or
word processor.
peter
--
Peter Suggitt <peter@apsayton.demon.co.uk> | Suggitt's Ices
Warped A4000 -- "Multimedia by design" | Great Ayton
| North Yorkshire
An Ambrosian shadow crab by another name will still get you wet,
Technical Details
Message-ID:
<9708081553.07j7@apsayton.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<yam7159.456.1749036984@post.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6f0c,5bbf7f16b97511a3,start X-Google-Attributes: gidf6f0c,public X-Google-Thread: 1160fd,5bbf7f16b97511a3,start X-Google-Attributes: gid1160fd,public From: "A.P. Suggitt" <SSS-900-C@apsayton.demon.co.uk> Subject: Re: PostScript Help! Date: 1997/08/08 Message-ID: <9708081553.07j7@apsayton.demon.co.uk> X-Deja-AN: 262877139 References: <yam7159.456.1749036984@post.demon.co.uk> X-Mail2News-User: SSS-900-C@apsayton.demon.co.uk Followup-To: comp.sys.amiga.applications,demon.tech.amiga X-Mail2News-Path: punt-1.mail.demon.net!apsayton.demon.co.uk Organization: Suggitts Ices Great Ayton Reply-To: peter@apsayton.demon.co.uk Newsgroups: comp.sys.amiga.applications,demon.tech.amiga