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

Free Support Forum - aspose.com

Reading Header & Footer


I am not able to identify how do I read or write the Header and Footer in Notes Master View?

Is the Header and Footer avaialble in this view is same as in other views?

Example on this will be handy for me. Thanks in advance.


Hi Nataraj<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your interest in Aspose.Slides.

I am afraid that HeaderFooterEx properties are not implemented for PPTX yet. However for PPT, they can be accessed on normal slides but not on the Notes or MasterNotes slides. Please use the code snippet below to access the header and footer for PPT.



//Creating an empty presentation

Presentation pres = new Presentation();

//Accessing first slide in PPT

Slide sld=pres.getSlides().get(0);

//Setting slide Header and Footer

sl.getHeaderFooter().setHeaderText("Hello: This is Header Text");

sl.getHeaderFooter().setFooterText("Hello: This is Fotter Text");



//Reaading Header and Footer text

String header=sl.getHeaderFooter().getHeaderText();

String fotter=sl.getHeaderFooter().getFooterText();

System.out.println(header+" "+fotter);

//Saving PPT file

pres.write(new FileOutputStream("D://ppt//asd123.ppt") );


catch(Exception ex)




Thanks and Regards,