Free Support Forum - aspose.com

Get text as HTML

Hi Team,

shape.getTextFrame().getParagraphs().addFromHtml(); Do we have anything that can provide us with entrire HTML content from text frame when we read.

We want to get html of formatting applied on text box along with text content to be saved in our backend for further processing.

@vdmehta36

Can you please share if you want to create the HMTL from slide text or insert HTML in text frame. Actually, your requirements in words and what is mentioned in sample code are two different things. Can you please elaborate what you want Aspose.Slides to offer you. At present, the API support importing HTML text for whole text frame rather any single paragraph. Please check this working example for your convenience.

We are looking to export HTML text from a text frame or paragraph into String variable of Java.

@vdmehta36

Please visit this documentation link for exporting TextFrame data to HTML.