Free Support Forum - aspose.com

Part of the notes pages missing

Hello apose team,

I have a problem with ppt file. There is notes pages for every slide, but when I try to get text form every notes I got a problem. From page 2 to page 11 text is missing in code. I am using aspse.slides.2.6.0 jar, Here is a test code and problematic file.

@Test
public void test() throws Exception {

Presentation presentation = new Presentation(
“d:/02_PPT_SOP/A20112000.ppt”);

Slides slides = presentation.getSlides();
for (int i = 0; i < slides.size(); i++) {
System.out.println("");
System.out.println(“page " + (i + 1));
System.out
.println(”-----------------------------------------------------");
Slide slide = slides.get(i);

Notes notes = slide.getNotes();

Paragraphs paragraphs = notes.getParagraphs();

for (int j = 0; j < paragraphs.size(); j++) {

Paragraph paragraph = paragraphs.get(j);

String text = paragraph.getText();

System.out.println(text);
}
}
}


Test method prints all text from every page in presentation, and you can see that part of text is missing.

Can youplease check this issue?

Thanks
Branko

Hi Branko,


Thanks for your interest in Aspose.Slides.

I have checked your presentation file and have found that the slides from 2 to 11 do not contain notes. Your code is correct to read slide notes of presentation file.