I want to convert a RTF file to PDF, via following code:
string strFileName = @"C:\_Recotest2\test.rtf";
LoadOptions loadoptions = new LoadOptions();
loadoptions.LoadFormat = LoadFomat.Rtf;
Document doc = new Document(strFileName,loadoptions);
When I run ths code I get following exception:
Aspose.Words.UnsupportedFileFormatException: Unknown file format.
I have the test.rtf-file attached.
What is wrong here?