Office add-in manipulate powerpoint headers/footers

Andreas Davros 71 Reputation points
2025-11-25T10:50:39.86+00:00

Our main question is how we can manipulate headers and footers for a powerpoint file using office.js or another library/tehcnology available in the office add-ins context.

We currently notice that there is no supported method in office.js. Is this something we should expect to be fixed shortly..? Are there any workarounds that could provide this capability?

Microsoft 365 and Office | Development | Office JavaScript API
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-11-25T10:50:48.3666667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Currently, the Office JavaScript API (Office.js) does not provide a supported method for manipulating headers and footers in PowerPoint presentations. As of now, there is no indication that this limitation will be addressed in the near future. Users looking for workarounds may need to consider alternative approaches, such as using other libraries or tools that can manipulate PowerPoint files outside of the Office.js context, but these may not integrate seamlessly with Office Add-ins.

    For the most accurate and up-to-date information, it is advisable to keep an eye on the official Microsoft documentation and updates regarding the PowerPoint JavaScript API.


    References:

    0 comments No comments

  2. Michelle-N 8,840 Reputation points Microsoft External Staff Moderator
    2025-11-25T13:37:57.0833333+00:00

    Hi @Andreas Davros

    Thank you for posting your question in Microsoft Q&A. 

    Based on your inquiry, I understand that you are looking for a way to manipulate headers and footers in a PowerPoint file using office.js or a similar technology within the Office Add-ins context.

    Currently, office.js does not support a dedicated API to directly manipulate Headers/Footers in PowerPoint. While these objects exist in the COM/VBA object models, they have not yet been exposed in the PowerPoint JavaScript API.

    According to the documentation I've found, the current API requirement set (PowerPointApi 1.9) primarily supports operations with Slides, Shapes, and SlideMasters, but it does not include a HeadersFooters property. As of now, Microsoft has not released any public announcements regarding the addition of this specific API capability.

    Since this capability is not currently available, I recommend submitting a feature request directly to the Microsoft Feedback Portal. Once you have submitted your request, please share the link here. I (and other community members) will vote for it to help get it prioritized.

    In the meantime, you might consider a workaround: creating a 'fake' footer using shapes.

    You can use office.js to add a textbox to the SlideMaster (or individual slides) and place it in a fixed position. However, please note that this only simulates a footer and cannot be toggled on/off using the native Header & Footer feature

    Reference: Work with shapes using the PowerPoint JavaScript API

    If you have any additional concerns, feel free to comment below. I would be more than happy to assist. 


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.