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

Free Support Forum - aspose.com

Get header and footer text

In Apose.Slides 7.8 there were properties to directly get the text content of headers and footers.


Using I cannot find a way to get the text of the headers and footers. The HeaderFooterManager only has a SetFooterText method.

How do I get the text?


Hi Jeff,

Thank you for the details.

Feature enhancement request has been registered in our issue tracking system with issue id: SLIDESNET-35757. We will notify you via this forum thread once the feature gets available in the latest version of Aspose.Slides.

Thanks & Regards,

I found a method to get the text of the header and footer using Aspose.Slides 14.7.

Dim oPresentation As New Presentation(“my.pptx”)
For Each oSlide As Slide In oPresentation.Slides
For Each oShape As Shape In oSlide.Shapes
If oShape.Placeholder IsNot Nothing AndAlso (oShape.Placeholder.Type = PlaceholderType.Header Or oShape.Placeholder.Type = PlaceholderType.Footer) Then
Dim str As String = CType(oShape, IAutoShape).TextFrame.Text
End If

Hi Jeff,

I am glad to know that you are able to implement the workaround at you end. Please feel free to contact support in case you need any further assistance.

Thanks & Regards,