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

Free Support Forum - aspose.com

HeaderFooter - Font Details


How can i get the font details like style , weight, colour for HeaderFooter object.


To get the formatting styles, you need to find out the footer shape on the master slide and then gets its textframe, paragraph and portion


Shape footerShape = masterSlide.findShape("footershape"); //Assume, footer shape’s alternative text has been set in MS-PowerPoint


Shape footerShape = masterSlide.getShapes().get(3); //Normally, the fourth shape is footer shape

Then get its textframe, pargraph and portion to get the text formatting.

TextFrame tf = footerShape.getTextFrame();
Pargraph para = tf.getParagraphs().get(0);
Portion port = para.getPortions().get(0);

The more easy and sure way to find footer shape among the shapes in master slides is to make use of TextFrame property TextFrame.getMetaCharacters()

The TextFrame.getMetaCharacters().get(0) will return you MetaCharacterType

And this will give you clue, if the shape is footer, date or slide number, the values of MetaCharacterType can be seen at this link.


Thanks for the reply.