simoncpu Random thoughts of simoncpu. You may view my old blog here.
  Send entry via E-mail
 
To:
From:
 Send me a copy.
Text:
  Generating RTF

I'm making a web-based payroll system right now.  Since we need to generate print-outs of the data, I opted to format it using Microsoft's proprietary (?!) Rich Text Format (RTF).  I didn't choose PDF because it's a bit complicated, and because we are on a tight deadline (was it a correct decision?).  I have no formal training on this whatsoever, so I had to rely on samples to deduce some of the rules that make up this document language.

The text that MSWord generates is so horrible.  I had to examine lengthy sequences such as this:

"... \brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1204\clshdrawnil \cellx9748\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1..."

This is fun! :)