Jump to content

Saving in RTF

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
Well technically im using PHP to do this but that is not what I am having trouble with. I tried googling this and couldnt find anything.

Basically I am trying to save something in RTF format. Is there a tutorial anywhere some people might recommend? Obviously I could just copy and paste the same thing a RTF thing created or play around with it for a few hours but I am trying to find a way to do this without being to messy.

So far I have realized that this works fine:

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}

{\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\f0\fs20

\b Full Name:\b0  Blaine Sch\par

\b Full Name:\b0  Blaine Sch\par

\b Full Name:\b0  Blaine Sch\par

\b Full Name:\b0  Blaine Sch\par

\b Full Name:\b0  Blaine Sch\par

}

The first 3 lines just start it up - take any of them out and you mess it up... the \b \b0 thing make it bold and \par is a new line

#2
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
I would start by reading the specification. Rich Text Format (RTF) Specification, version 1.6