Free Support Forum - aspose.com

addFromHtml not working

Hi Team,

Below is the way we are trying to add attached HTML content and it is not rendered on slides properly.

shape.getTextFrame().getParagraphs().addFromHtml(StringEscapeUtils.unescapeHtml(content != null ? content : “”));htmlContent.zip (592 Bytes)
htmlContent.zip (592 Bytes)

@vdmehta36

Can you please share the issue incurring on your end along with generated output. I am assuming that you are using Aspose.Slides for Java 20.12 on your end.

Hi,
We are using 18.11 version.

The issue is that HTML content is not rendered on slide correctly how it appears in browser.

@vdmehta36

First of all, I suggest you to please verify using Aspose.Slides for Java 20.12 on your and share if there is still an issue. Secondly, we need the output presentation where you have imported the HTML text and observing the issue.