Re: How to convert plain ASCII text file to RTF?
From: Steven J Masta (smasta_at_earthlink.net)
Date: 12/30/04
- Next message: Tlhingan: "mount_nfs -T -i --> fstab?"
- Previous message: cinnur: "Re: BSD 5.3 Sound Device Problem. Please Help"
- In reply to: tinyurl.com/uh3t: "How to convert plain ASCII text file to RTF?"
- Next in thread: Bill Laird: "Re: How to convert plain ASCII text file to RTF?"
- Reply: Bill Laird: "Re: How to convert plain ASCII text file to RTF?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Dec 2004 03:21:40 GMT
On Wed, 29 Dec 2004 11:38:18 -0800, tinyurl.com/uh3t wrote:
> I have a file in plain text format, and I need to e-mail it to somebody
> who accepts only MS-Word and RTF. Obviously there's no way to create a
> MS-Word file here on Unix, so I need a way to convert the file to RTF. Is
> there any Unix utility that would do that automatically? Alternately, does
> anybody know what minimal RTF header etc. I can manually add with a text
> editor to fake a minimal RTF file?
>
> I did a Google search but the closest I could find was a java program to
> write a "hello world" RTF file, but it wouldn't compile because it
> required classes such as com.lowagie.text.Document which are not in the
> standard java 1.2.2 distribution here on this FreeBSD 4.10-STABLE ISP.
>
> I found the RTF 1.5 specification, but it's very large, with many header
> fields, but no idea what the minimal header would be nor how to specify
> plain text fixed-pitch font with everything pre-formatted with hard
> newlines so that I could just stick a header in front of the plain-text
> file to make it work as RTF.
Check out http://freshmeat.net/projects/text2rtf/
If you're not expecting much, you won't be disappointed.
It seems to just add:
{\rtf1\mac\ansicpg10000\cocoartf102
{\fonttbl\f0\froman\fcharset77 Times-Roman;}
\f0\fs24
as a header then \par at the beginning of each line (except the first one
of course)
Have fun
Steve
- Next message: Tlhingan: "mount_nfs -T -i --> fstab?"
- Previous message: cinnur: "Re: BSD 5.3 Sound Device Problem. Please Help"
- In reply to: tinyurl.com/uh3t: "How to convert plain ASCII text file to RTF?"
- Next in thread: Bill Laird: "Re: How to convert plain ASCII text file to RTF?"
- Reply: Bill Laird: "Re: How to convert plain ASCII text file to RTF?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|