Issue) RTF text with single image only is not converted properly to HTML. So, HTML file comes as blank.
But if we authore some text and then image, in that case it is working fine.
Also, With single image only as RTF text, PDF is generated properly but HTML is somehow not working.
Sample java code used for reference:
Added following dependency and repository in pom.xml
Aspose Java API
============= Java code with input and output option ============
// from rtf stored in database get bytes convert to Input stream
InputStream rtfStream = new ByteArrayInputStream(bytes);
RtfLoadOptions rtfOptions = new RtfLoadOptions();
Document document = new Document(rtfStream, rtfOptions);
HtmlSaveOptions htmlOptions = new HtmlSaveOptions(SaveFormat.HTML);
System.out.println(“Document loaded and saved successfully.”);