Add Header and Footer in PowerPoint Presentations using C#

Add Header and Footer in PowerPoint C#

Header and footer in PowerPoint presentations are used to display additional information such as slide number, author, date, etc. In this article, you will learn how to add and manage the header and footer in PowerPoint PPTX/PPT presentations programmatically using C#.

In order to work with header and footer in PowerPoint presentations, we will use Aspose.Slides for .NET. It is a .NET class library that lets you create and manipulate PowerPoint and OpenOffice documents. You can download the API’s DLL from the downloads section. Also, the API can be installed via NuGet.

PM> Install-Package Aspose.Slides.NET

The following are the steps to add header and footer in a PowerPoint presentation using C#.

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

Aspose.Slides for .NET also allows you to set the header and footer in handout and notes slides. For this, you can either apply changes in master notes slide or an individual slide. The following sections cover both scenarios.

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

The following code sample shows how to change header and footer in notes slides using C#.

Get a Free API License

Get a free temporary license to use Aspose.Slides for .NET without evaluation limitations.

Conclusion

In this article, you have learned how to add header and footer in PowerPoint presentations using C#. Moreover, you have seen how to change header and footer in notes slides programmatically. Besides, you can explore the documentation to learn more about Aspose.Slides for .NET. Also, you can ask your questions via our forum.

See Also