Dear Crafte,
The code is actually in C#, but since the both versions of Aspose.Slides i.e .NET and JAVA support almost same APIs, the code can easily be converted into the JAVA.
The only difference is that read/write properties in JAVA have prefixes get and set.
For example, in C# you can change the text of the TextFrame using this code
Tf.Text=”Some text”;
But the same thing in JAVA would be like this
Tf.setText(“Some Text”);
To see online reference of JAVA APIs for Aspose.Slides for Java, follow this link
http://www.aspose.com/Products/Aspose.Slides/JavaDoc/
And for .NET follow this link
http://www.aspose.com/Products/Aspose.Slides/Api/
Yes, Aspose.Slides provide the ability to format portions of the text inside the textframe. Each textframe contains a collection of paragraph objects each of which contains a collection of portion objects.
For example, if you want to set the second portion of the first paragraph of textframe to bold font, you will write code like this
tf.Paragraphs[0].Portions[0]..FontBold=true (C#)
tf.getParagraphs().get(0).getPortions(1).setFontBold(true) (JAVA)
Please also see Working with Text section in Programer’s Guide on Aspose.Slides Wiki. It includes code examples in C#, VB.NET, JAVA and PHP
http://www.aspose.com/Wiki/Default.aspx/Aspose.Slides/
You can set the font bold, italic, underline, add bullets. However you will have to write code yourself to covert HTML to PowerPoint.
Many Thanks and Kind Regards,
Shakeel Faiz
Support Developer
Aspose Sialkot Team
Contact UsAspose - The .NET and Java Component Publisher
Keep in touch! We're on
Twitter and
Facebook