Reading Slide Note with Font and Format

Hi,

Am using Aspose.Slides (Java) to read the Slide Notes from the presenation. Am able to read the slide notes from the presentation but am not getting how to maintain the fonts, formats (bold/italics/colors/indentation) etc.

If anyone can provide an example for the same will be a great help.

Thanks in advance.

Hi,

You can use formatting properties exposed by Portion object. A working sample to extract bold text is as under:

pres = new Presentation("slides.ppt");

Slide sld=pres.getSlideByPosition(1);

Notes nt=sld.getNotes();

for(int i=0;i<nt.getParagraphs().size();i++)

for(int j=0;j<nt.getParagraphs().get(i).getPortions().size();j++)

if(nt.getParagraphs().get(i).getPortions().get(j).isFontBold())

{

//System.out.println("It is Bold");

System.out.println(nt.getParagraphs().get(i).getPortions().get(j).getText());

}