Get header and footer text

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


.HeaderFooter.FooterText
.HeaderFooter.HeaderText

Using 14.7.0.0 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?

Thanks.

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
Next
Next




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,