Created
June 18, 2023 10:16
-
-
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/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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