| Aandi Inston 2005-06-09, 8:57 am |
| dbtung@berkeley.edu wrote:
>I'm looking for a program (or how to write a program) that will change
>a postscript file to ASCII. I've looked at the ps2ascii script that
>comes packaged with Ghostscript, and its output is acceptable on many
>postscript files. However, I find that it runs into problems when I
>encounter files with figures in them. Is there a way to filter out the
>figures from the postscript file before I start processing it? Or a
>different program that I should try?
This is a very difficult problem. In general, a figure might contain
text, or a font might be used to fill in a pattern. How could any
program know how to skip these? Also, some programs use re-encoded
fonts that just come out as gobbledegook, no matter how good they look
on the page. Other files might draw letters as shapes.
ps2ascii is probably pretty much state of the art. Don't expect magic,
flawless translation.
>Otherwise, any advice on how I
>could write a program to attack this problem?
1. Read the PostScript Language Reference manual in detail until you
understand it.
2. Set aside 2-5 years for the project.
----------------------------------------
Aandi Inston quite@dial.pipex.com http://www.quite.com
Please support usenet! Post replies and follow-ups, don't e-mail them.
|