Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save conholdate-com-kb/b34725ba1ffca92a2ba773696af2d3fb to your computer and use it in GitHub Desktop.
Save conholdate-com-kb/b34725ba1ffca92a2ba773696af2d3fb to your computer and use it in GitHub Desktop.
How to Convert RTF to SVG Using C#. For more information, please follow link: https://kb.conholdate.com/total/net/how-to-convert-rtf-to-svg-using-csharp/
using GroupDocs.Conversion;
namespace ConvertRTFtoSVGUsingCSharp
{
internal class Program
{
public static void Main(string[] args)
{
// Set License to avoid the limitations of Conversion library
License lic = new License();
lic.SetLicense(@"GroupDocs.Conversion.lic");
// Import RTF document
var converter = new Converter("input.rtf");
// Get conversion option for final output document
var conversionoptions = converter.GetPossibleConversions()["svg"]
.ConvertOptions;
// Save the SVG to disk
converter.Convert("result.svg", conversionoptions);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment