🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #1770

Re: looking for RTF->PostScript

#1770
From: Bruce.Hoult
Date: Fri, 14 Aug 1992 04:39
28 lines
1643 bytes
In article <375mrlg.mslade@netcom.com> mslade@netcom.com (Michael Slade) writes:
> I'm looking for c code that parses MicroSoft's Rich Text Format
> and produces reasonable PostScript.
> A close second would be a good parser for Rich Text Format.
> 
> Thanks in advance for any suggestions.


Microsoft Word does a reasonable job of that.  :-)
 

Seriously, RTF and PostScript are completely different animals.  RTF
describes a document as a linear stream of text with formatting and
layout commands interspersed.  PostScript describes a two-dimensional
finished page, but has no concept of text as a stream, or line
wrapping, or that things proabbly shouldn't print on top of each other
or anything like that.

To convert RTF to PostScript you really would have to effectively
rewrite MS Word yourself -- much easier to just use AppleEvents to
reuse the existing tool than to do it all yourself...

-- Bruce
-- 
Bruce.Hoult@bbs.actrix.gen.nz   Twisted pair: +64 4 477 2116
BIX: brucehoult                 Last Resort:  PO Box 4145 Wellington, NZ
"Cray's producing a 500 MIPS personal computer with 256MB RAM and 8 GB
hard disk that fits in your pocket!"   "Great!  Is it PC compatible?"
Technical Details
Message-ID: <1992Aug14.043913.4854@actrix.gen.nz>
Path: arc1-ca.pugleaf.net!sparky!uunet!comp.vuw.ac.nz!actrix!Bruce.Hoult
References: <375mrlg.mslade@netcom.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript
Path: arc1-ca.pugleaf.net!sparky!uunet!comp.vuw.ac.nz!actrix!Bruce.Hoult
From: Bruce.Hoult@bbs.actrix.gen.nz
Subject: Re: looking for RTF->PostScript
Organization: Actrix Information Exchange
Date: Fri, 14 Aug 1992 04:39:13 GMT
Message-ID: <1992Aug14.043913.4854@actrix.gen.nz>
Keywords: RTF PostScript
References: <375mrlg.mslade@netcom.com>
Sender: Bruce.Hoult@actrix.gen.nz (Bruce Hoult)
Lines: 28