Converting HTML to RTF
Posted: Fri Aug 09, 2013 6:35 am
I cannot seem to convert an HTML with a link to RTF – the link color is exported but not the actual link.
I used TRvHtmlImporter2.LoadHtml / TRichView.SaveRTFToStream
I used the following HTML:
<html><body>This activity was created by <b><a href="http://www.dimastr.com/redemption">Rede ... ody></html>
Which generated the RTF below.
Did I forget to set a particular flag?
Thank you!
{\rtf1\ansi\ansicpg0\uc1\deff0\deflang0\deflangfe0{\fonttbl{\f0\fnil Arial;}{\f1\fnil Times New Roman;}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}
\pard\fi0\li0\ql\ri0\sb0\sa0\itap0 \plain \f0\fs20 This activity was created by \plain \f0\ul\fs20\cf2 Redemption\par}
I used TRvHtmlImporter2.LoadHtml / TRichView.SaveRTFToStream
I used the following HTML:
<html><body>This activity was created by <b><a href="http://www.dimastr.com/redemption">Rede ... ody></html>
Which generated the RTF below.
Did I forget to set a particular flag?
Thank you!
{\rtf1\ansi\ansicpg0\uc1\deff0\deflang0\deflangfe0{\fonttbl{\f0\fnil Arial;}{\f1\fnil Times New Roman;}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}
\pard\fi0\li0\ql\ri0\sb0\sa0\itap0 \plain \f0\fs20 This activity was created by \plain \f0\ul\fs20\cf2 Redemption\par}