We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Placeholder of Slide Number on Notes Page Is Not Detected in PPT

Hi,


I have simple presentation with slide number added on notes page. For .pptx file, slide number shape is detected as placeholder of type PlaceholderType.SlideNumber. For .ppt file, this shape isn’t detected as placeholder.

Here’s the code I use:

String presentationPath = “NotesSlideNumber.pptx”;

InputStream inputStream = new FileInputStream(presentationPath);

Presentation presentation = new Presentation(inputStream);

inputStream.close();
ISlide slide = presentation.getSlides().get_Item(0);
INotesSlide notesPage = slide.getNotesSlideManager().getNotesSlide();
IShapeCollection shapes = notesPage.getShapes();
IShape shape = shapes.get_Item(2);
System.out.println("isPlaceholder: " + shape.isTextHolder());
if (shape.isTextHolder()) {
System.out.println("PlaceholderType: " + shape.getPlaceholder().getType());
}
IAutoShape autoShape = (IAutoShape) shape;
System.out.println("Shape text: " + autoShape.getTextFrame().getText());

Here’s the output in case of .pptx file:

isPlaceholder: true
PlaceholderType: 5
Shape text: 1

Here’s the output in case of .ppt file:

isPlaceholder: false
Shape text: 1

I’m using Aspose.Slides for Java 16.8.0.

Can you check this?

Thanks,
Zeljko
Hi Zeljko,

Thank you for posting.

I have observed your comments and worked with the presentation file shared by you. I have been able to reproduce the issue. A ticket with ID SLIDESJAVA-35675 has been logged in our issue tracking system to further investigate and resolve the issue.This thread has been linked with the issue so that you may be notified automatically as soon as the issue will be resolved.

We are sorry for your inconvenience,

The issues you have found earlier (filed as SLIDESJAVA-35675) have been fixed in this update.