We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

HTML to RTF using Aspose

I have a requirement to convert HTML phrases into RTF. Using Aspose I was able to convert but I see meta tags which I feel is not required as it is causing undue lengthy RTF content. Is there a way to remove that?


Please use the RtfSaveOptions as shown below to get the desired output. Hope this helps you.

Document doc = new Document(MyDir + "in.html");

RtfSaveOptions rtfSaveOptions = new RtfSaveOptions();
rtfSaveOptions.ExportCompactSize = true;
rtfSaveOptions.ExportImagesForOldReaders = false;
doc.Save(MyDir + "19.4.rtf", rtfSaveOptions);