Follow this article to edit header and footer in PowerPoint with C# REST API. It will guide you to set the header and footer in PowerPoint with C# RESTful Service using the .NET-based Cloud SDK. You will learn to set the footer for the entire presentation or set the footer for the individual slides.
Prerequisite
- Create an account API credentials
- Download Aspose.Slides Cloud SDK for Dotnet for inserting slides footer
- Setup C# project with the above SDK to add a footer to an entire presentation or a selected slide
Steps to Add PowerPoint Footer with C# Low Code API
- Instantiate the SlidesApi object with the client ID and secret for designing the presentation footer
- Upload the source presentation file to the Cloud storage for setting the footer
- Create an object of the HeaderFooter class and set the desired parameters required for all the slides
- Invoke the SetPresentationHeaderFooter method to set the HeaderFooter object for the entire presentation
- Instantiate another HeaderFooter object and set parameters for the first slide
- Call the SetSlideHeaderFooter() method to set the footer for a specific slide
- Display the footer details and save the resultant presentation when required
The above steps describe how to set headers and footers in PowerPoint with C# .NET-based API. Create the SlidesApi object, upload the input presentation, and create multiple HeaderFooter objects for the entire presentation using the SetPresentationHeaderFooter() method or for selected slides using the SetSlideHeaderFooter() method. You may download the updated presentation and also display details of any footer.
Code for Adding Footer for PowerPoint with C# REST Interface
This code demonstrates how to set PPTX or PPT header and footer with C# REST API. When you declare a HeaderFooter object it does not have any default values and all the parameters are set to NULL by default. For displaying the properties of any HeaderFooter object you may call the ToString() method that is overloaded for displaying all the properties including IsDateTimeVisible, IsSlideNumberVisible, DateTimeText, and FooterText.
This article has demonstrated how to set the PowerPoint and slides footer with C# REST Interface. For generating a video from a presentation, refer to the article on Convert PowerPoint to Video with C# REST API.