Bullet list are incorrectly exported in output HTML using Java

Issue) Rtf text having rounded bullet points is not converted properly to HTML file. So, Not showing bullet point but just showing text.
Below is the sample rtf text and its related image for reference.

Rtf text:
{\rtf1\ansi\deff0\uc1\ansicpg1252\deftab720{\fonttbl{\f0\fnil\fcharset1 Arial;}{\f1\fnil\fcharset1 Tahoma;}{\f2\fnil\fcharset0 Times New Roman;}{\f3\fnil\fcharset1 Times New Roman;}{\f4\fnil\fcharset2 WingDings;}{\f5\fnil\fcharset2 WingDings;}{\f6\fnil\fcharset2 Symbol;}{\f7\fnil\fcharset2 Symbol;}{\f8\fnil\fcharset1 Courier New;}{\f9\fnil\fcharset1 Calibri;}}{\colortbl\red0\green0\blue0;\red255\green0\blue0;\red0\green128\blue0;\red0\green0\blue255;\red255\green255\blue0;\red255\green0\blue255;\red128\green0\blue128;\red128\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red0\green128\blue128;\red0\green0\blue128;\red255\green255\blue255;\red192\green192\blue192;\red128\green128\blue128;\red0\green0\blue0;\red0\green0\blue0;\red128\green128\blue0;}\wpprheadfoot1\paperw12240\paperh15840\margl1880\margr1880\margt1440\margb1440\headery720\footery720\pgbrdrhead\pgbrdrfoot\pgbrdropt32\endnhere\sectdefaultcl{*\generator WPTools_7.000;}{*\listtable{\list\listtemplateid1

{\listlevel\leveljc0\levelfollow0\levelstartat1\levelspace0\levelindent0\levelnfc23\fi-360\li1757\levelstartat1{\leveltext'01\u61623 ?;}{\levelnumbers ;}\f7}

{\listlevel\leveljc0\levelfollow0\levelstartat1\levelspace0\levelindent360\levelnfc3\levelstartat1{\leveltext'02'01.;}{\levelnumbers '01;}}

{\listlevel\leveljc0\levelfollow0\levelstartat1\levelspace0\levelindent360\levelnfc0\levelstartat1{\leveltext'02'02.;}{\levelnumbers '01;}}

{\listlevel\leveljc0\levelfollow0\levelstartat1\levelspace0\levelindent360\levelnfc4\levelstartat1{\leveltext'02'03);}{\levelnumbers '01;}}

{\listlevel\leveljc0\levelfollow0\levelstartat1\levelspace0\levelindent360\levelnfc2\levelstartat1{\leveltext'03('04);}{\levelnumbers '02;}}

{\listlevel\leveljc0\levelfollow0\levelstartat1\levelspace0\levelindent360\levelnfc4\levelstartat1{\leveltext'03('05);}{\levelnumbers '02;}}

{\listlevel\leveljc0\levelfollow0\levelstartat1\levelspace0\levelindent360\levelnfc0\levelstartat1{\leveltext'03('06);}{\levelnumbers '02;}}

{\listlevel\leveljc0\levelfollow0\levelstartat1\levelspace0\levelindent360\levelnfc0\levelstartat1{\leveltext'03('07);}{\levelnumbers '02;}}

{\listlevel\leveljc0\levelfollow0\levelstartat1\levelspace0\levelindent360\levelnfc0\levelstartat1{\leveltext'03('08);}{\levelnumbers '02;}}

\listid1}}{*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}}{\stylesheet

{\s1\li0\fi0\ri0\sb0\sa160\sl259\slmult1\ql\vertalt\f9\fs22\cf15 Normal;}

{\s2\li0\fi0\ri0\sb0\sa0\ql\vertalt\fs22 Default Paragraph Font;}}

{\plain\f1\fs18\cf16 Bullet points\par

\ls1\ilvl-1{\listtext\f7\fs18 \u61623 ?\tab}\li1757\fi-360\sl250\slmult1\wpparflg32\plain\f3\fs24\cf0 5 \endash Exceptional \par

{\listtext\f7\fs24 \u61623 ?\tab}\wpparflg32\plain\f3\fs24\cf0 4 \endash Above Average \par

{\listtext\f7\fs24 \u61623 ?\tab}\wpparflg32\plain\f3\fs24\cf0 3 \endash Average \par

{\listtext\f7\fs24 \u61623 ?\tab}\wpparflg32\plain\f3\fs24\cf0 2 \endash Satisfactory \par

{\listtext\f7\fs24 \u61623 ?\tab}\wpparflg32\plain\f3\fs24\cf0 1 \endash Unsatisfactory \par

\pard\plain\plain\f1\fs18\cf16\par

}}

Sample Image:
1_RtfImageTextWithRoundBulltePoints.jpg (34.3 KB)

Sample java code used for reference:
Added following dependency and repository in pom.xml

<dependency>
        <groupId>com.aspose</groupId>
        <artifactId>aspose-words</artifactId>
        <version>20.3</version>
        <classifier>jdk17</classifier>
    </dependency>

………

AsposeJavaAPI
Aspose Java API
Aspose Repository Browser /java/repo/

============= Java code with input and output option ============
public static void main(String[] args) throws Exception {
License license = new License();
license.setLicense(“C:\Users\pprajapati\Desktop\9122\Aspose.Words.lic”);
// with options
RtfLoadOptions rtfOptions = new RtfLoadOptions();
rtfOptions.setRecognizeUtf8Text(true);

PdfSaveOptions pdfOptions = new PdfSaveOptions();
pdfOptions.setCompliance(PdfCompliance.PDF_17);

HtmlSaveOptions htmlOptions = new HtmlSaveOptions(SaveFormat.HTML);
htmlOptions.setPrettyFormat(true);
htmlOptions.setExportListLabels(ExportListLabels.BY_HTML_TAGS);

Document doc = new Document("C:\\Users\\pprajapati\\Desktop\\9122\\program\\1_BullterPointDb.rtf", rtfOptions);
doc.save("C:\\Users\\pprajapati\\Desktop\\9122\\program\\outputAspose.pdf", pdfOptions);
doc.save("C:\\Users\\pprajapati\\Desktop\\9122\\program\\outputAspose.html", htmlOptions);
System.out.println("done");

}

@pprajapati

The shared RTF does not display correctly in MS Word. Could you please ZIP and attach your input RTF here for testing? We will investigate the issue and provide you more information on it.

Added RTF in zip file RtfTextWithRoundedBulletPoints.zip (966 Bytes)
Please check it and let us know, Is there anything wrong in our rtf because of which Aspose not supporting bullet points?

@rjethava

Your document contains five lists instead of one and each list item starts with 0. The list items are incorrectly formatted. You can save RTF to DOCX using MS Word and unzip the DOCX and check the document.xml for detail.