Hi,
I tried to find out the project/ code for RTF to HTML converter but no one create project/code for Universal windows application, now end of searching i have to create RTF-to-HTML-RTF converter for UWP.
DOWNLOAD Project
LINK : https://github.com/mhshry/RTF-to-HTML-Converter
Feature in this project:
Bold Italic Underline
FontFamily
FontSize
Color red yellow
Link
Input RTF:{\rtf1\fbidis\ansi\ansicpg1252\deff0\nouicompat\deflang16393{\fonttbl{\f0\fnil\fcharset0 Segoe UI;}{\f1\fnil\fcharset0 Rage;}{\f2\fnil Segoe UI;}{\f3\fnil\fcharset2 Symbol;}}
2. Full output with HTML text and Html Viewer
3. As given Text in RTF format display in WEb Broser.
I tried to find out the project/ code for RTF to HTML converter but no one create project/code for Universal windows application, now end of searching i have to create RTF-to-HTML-RTF converter for UWP.
DOWNLOAD Project
LINK : https://github.com/mhshry/RTF-to-HTML-Converter
Feature in this project:
Bold Italic Underline
FontFamily
FontSize
Color red yellow
- Bullet 1
- bullet 2
- Number1
- Number2
Link
1. RichEditBox data displayed in below image.
{\colortbl ;\red0\green0\blue0;\red0\green128\blue0;\red255\green0\blue0;\red255\green255\blue0;\red0\green0\blue255;}
{\*\generator Riched20 10.0.10586}\viewkind4\uc1
\pard\ltrpar\tx720\cf1\f0\fs24\lang1033 Hi,\par
\b Bold \b0\i Italic \ul\i0 Underline \ulnone\par
\f1 FontFamily\f0\par
\fs56 FontSize\fs24\par
\cf2 Color \cf3 red \cf4 yellow\cf1\par
\pard{\pntext\f3\'B7\tab}{\*\pn\pnlvlblt\pnf3\pnindent0{\pntxtb\'B7}}\ltrpar\tx720 Bullet 1\par
{\pntext\f3\'B7\tab}bullet 2\par
\pard
{\pntext\f0\u-239?)\tab}{\*\pn\pnlvlbody\pnf0\pnindent0\pnstart1\pndecd{\pntxta)}}
\ltrpar\tx720 Number1\par
{\pntext\f0\u-238?)\tab}Number2\par
\pard\ltrpar\tx720\par
{\cf5\ul{\field{\*\fldinst{HYPERLINK "http://google.com"}}{\fldrslt{Link}}}}\f0\fs24\par
\pard\ltrpar\tx720\f2\lang16393\par
}
3. As given Text in RTF format display in WEb Broser.
Output HTML:<html> <p><span style="color: 000000";> <span style="font-family: Segoe UI ";><font size=12> Hi,</p><p><strong> Bold </strong><em> Italic <u></em> Underline </u></p><p></font><span style="font-family: Rage";> FontFamily<span style="font-family: Segoe UI";></p><p><font size=28> FontSize</font></span></p><p></span><span style="color: 008000"> Color </span><span style="color: ff0000"> red </span><span style="color: ffff00"> yellow<span style="color: 000000 "></p><p>
<p><ul><li>Bullet 1</li><li>bullet 2</li></ul><p><ol> <li> Number1</li><li>Number2</ol><p></p><p></span><span style="color: 0000ff"><u><a href="http://google.com">Link</a></u></span><span style="font-family: Segoe UI";><font size=12></p><p>
<p></span></p> </html>
Happy Coding :)