Converting HTML to RTF using aspose.words is truncating the data

ConvertedRTF_From_Aspose.WordsAPI.pdf (142.8 KB)
HTMLContent.pdf (70.5 KB)

Converting HTML to RTF using aspose.words is truncating the data at the end of the HTML content, following is the code snippet being used. We are using ASPOSE.Words.DLL version which is 17.12.0.0

Aspose.Words.Saving.RtfSaveOptions saveOptions = new Aspose.Words.Saving.RtfSaveOptions();
saveOptions.SaveFormat = Aspose.Words.SaveFormat.Rtf;

WE added the HTML Content and converted RTF in the attachment for further review

@GururajKuruba

You shared the RTF and HTML in PDF files. Please ZIP and attach your RTF and HTML documents here for testing. We will investigate the issue and provide you more information on it.

Convert_HTML_RTF_Truncating.zip (19.6 KB)

Please find the files zipped. Thank You

@GururajKuruba

We have tested the scenario and noticed that following text is lost in output RTF.

testing for test and for test:~ETHNICITY~

For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-18791. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

@GururajKuruba

It is to inform you that the issue which you are facing is actually not a bug in Aspose.Words. So, we have closed this issue (WORDSNET-18791) as ‘Not a Bug’.

The problematic paragraph has the “-aw-import:ignore” CSS style that tells Aspose.Words to ignore the paragraph on import. You should remove this style from paragraph to get the desired output.