Aspose.Slides - Create Presentation Header Footer

//Show date time placeholder
sourcePres.getHeaderFooterManager().setDateTimeVisible(true);

//Show the footer place holder
sourcePres.getHeaderFooterManager().setFooterVisible(true);

//Show Slide Number
sourcePres.getHeaderFooterManager().setSlideNumberVisible(true);

//Set the  header footer visibility on Title Slide
sourcePres.getHeaderFooterManager().setVisibilityOnTitleSlide(true);

sourcePres.getHeaderFooterManager().setFooterText("Aspose Slides");

Apache POI SL

//presentation-scope headers / footers
HeadersFooters hf = ppt.getSlideHeadersFooters();
hf.setSlideNumberVisible(true);
hf.setFootersText("Created by POI-HSLF");

Download Source Code

For More Examples, Please Visit Aspose Docs

Last edited Feb 12, 2015 at 4:12 PM by shoaibkhan, version 1