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

Free Support Forum - aspose.com

Issues with setting Title slide text

Hi All,

I am facing issue with setting author & title text for Title Slide.

I tried using presentation.getDocumentProperties().setAuthor(“Anil Kumar”);
and also tried get Shapes and setting that text. But nothing is working for me.

I am using office 2007 and Aspose Java Slides api.

How can set those items?
How can I set Font styles for those items?

This message was posted using Page2Forum from Aspose products - Documentation

Slide slide = presentation.addTitleSlide();
((TextHolder) slide.getPlaceholders().get(0)).setText(“Slide Title Heading”);
((TextHolder) slide.getPlaceholders().get(1)).setText(“Slide Title Sub-Heading”);

Above code is partially working.

We created a ppt template in 2003 version. When I am using above positions of text items are not proper.

Hi Anil,

presentation.addTitleSlide() creates a title slide with Place Holders at the positions defined by the Title Master slide in PowerPoint 2003. If no Title Master is defined, the Place Holders will be at default positions.

When I add Title slide through power point application. Text holders are at right place.
But when I add through Aspose API. They are at bottom of the slide.

I am setting X&Y positions for the text holders explicitly as work around solution.