Add Header and Footer in PowerPoint Presentations using C++

You can use header and footer sections in PowerPoint slides to display additional information such as slide number, date, author, etc. You can also manipulate these sections programmatically within your C++ applications. To that end, this article will teach you how to add header and footer in PowerPoint presentations using C++.

We will use the Aspose.Slides for C++ API to add header and footer in PowerPoint presentations. It is a robust API providing many features for working with PowerPoint PPTX/PPT files. You can either install the API through NuGet or download it directly from the Downloads section.

PM> Install-Package Aspose.Slides.Cpp

The following are the steps for adding header and footer in PowerPoint presentations.

The following sample code shows how to add a header and footer in a PowerPoint presentation using C++.

With Aspose.Slides for C++, you can easily manage header and footer for both notes master and notes slides. The following sections cover how to manage header and footer in notes master and notes slides.

The following are the steps to change the header and footer settings for notes master.

The following sample code shows how to change the header and footer in notes master using C++.

The following are the steps to change the header and footer settings for notes slides.

The following sample code shows how to change the header and footer in the notes slide using C++.

Get a Free License

In order to try the API without evaluation limitations, you can request a free temporary license.

Conclusion

In this article, you have learned how to add header and footer in PowerPoint presentations using C++. Furthermore, you have seen how to change the header and footer in notes master and notes slide using Aspose.Slides for C++ API. It is a powerful API that provides a bunch of additional features for working with PowerPoint PPTX/PPT files. You can explore the API in detail by visiting the official documentation. In case of any queries, please feel free to reach us at our free support forum.

See Also