Free Support Forum -

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 : “”)); (592 Bytes) (592 Bytes)


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.

We are using 18.11 version.

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


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.