title: Delphi: best way to convert rtf to text
body: <p>I need to convert rtf to plain text. i used to write a function that strips away rtf headers but it is never perfect.</p>
  
  <p>So one option can be using a TRichEdit created at runtime (something like described <a href="http://coding.derkeiler.com/Archive/Delphi/comp.lang.pascal.delphi.misc/2004-09/0003.html" rel="nofollow noreferrer">here</a> but done of course at runtime). But is there another way? Is there an rtl function for this or a better approach?</p>
  
  <p>UPDATE:</p>
  
  <p>In <a href="https://stackoverflow.com/questions/3227899/using-trichedit-at-runtime-without-defining-a-parent">this question</a> I wrote the final version of my rtf to text procedure.</p>