logo
RTF-to-HTML DLL .Net is a standalone C# component to convert RTF to HTML, XHTML and Text to HTML, RTF to Text
Overview | Getting Started | FAQ | History | License | Order and Pricing |Support and Contacts

FAQ

Here you may find answers on most popular questions regarding RTF-to-HTML DLL .Net.

First version of RTF-to-HTML DLL .Net released!

CSS

  1. I was wondering if the styles could be moved from tags <style>...</style> to a HTML document?

Images

  1. After the conversion from RTF to HTML the 'src' property of the '<img>' tag displays binary data. Is there any way to get/save this data separately and provide a relative path?

Our answers

CSS

  1. I was wondering if the styles could be moved from tags <style>...</style> to a HTML document?

    Answer: Yes, you may specify the component to produce inline styles. Inline styles are specified using the "style" attribute. For example:
    <p style="font-face: Arial; color: red">
    Set the property SautinSoft.CTextStyle.InlineCSS to true.

    C#:
    SautinSoft.RtfToHtml r = new SautinSoft.RtfToHtml();
    r.TextStyle.InlineCSS = true;		  
    

    VB.Net:
    Dim r As New SautinSoft.RtfToHtml()
    r.TextStyle.InlineCSS = True		  
    

Images

  1. After the conversion from RTF to HTML the 'src' property of the '<img>' tag displays binary data. Is there any way to get/save this data separately and provide a relative path?

    Answer: Yes, sure you may specify the component to save images as physical files on HDD. Set the property SautinSoft.CImageStyle.IncludeImageInHtml to false.

    C#:
    SautinSoft.RtfToHtml r = new SautinSoft.RtfToHtml();
    r.ImageStyle.IncludeImageInHtml = false;		  
    

    VB.Net:
    Dim r As New SautinSoft.RtfToHtml()
    r.ImageStyle.IncludeImageInHtml = False		  
    

Copyright © 2002-2010, SautinSoft™. All rights reserved.