Create Presentation Header Footer using Apache POI and Aspose.Slides
Contents
[
Hide
]
Aspose.Slides - Create Presentation Header Footer
The method getHeaderFooterManager() gives you access to Headers and Footers using Aspose.Slides API.
//Show date time placeholder
sourcePres.getHeaderFooterManager().setAllDateTimesVisibility(true);
//Show the footer place holder
sourcePres.getHeaderFooterManager().setAllFootersVisibility(true);
//Show Slide Number
sourcePres.getHeaderFooterManager().setAllSlideNumbersVisibility(true);
//Set the header footer visibility on Title Slide
sourcePres.getHeaderFooterManager().setVisibilityOnAllTitleSlides(true);
sourcePres.getHeaderFooterManager().setAllFootersText("Aspose Slides");
Apache POI SL - HSLF XSLF - Create Presentation Header Footer
HeadersFooters class getters to access header and footer using Apache POI SL - HSLF XSLF
//presentation-scope headers / footers
HeadersFooters hf = ppt.getSlideHeadersFooters();
hf.setSlideNumberVisible(true);
hf.setFootersText("Created by POI-HSLF");
Download Running Code
Download Sample Code
For more details, visit How to Add Header Footer in a Presentation.