In the previous section, we described three kinds of watermark that can be added to an Excel document using GroupDocs.Watermark API. Here we will focus on how to work with headers and footers.
Working with Headers&Footers
Extracting Information about all Headers&Footers in an Excel Document
You can extract information about all the headers&footers in an Excel document as shown in the below code sample.
Clearing a Particular Header&Footer
You can also clear a particular header&footer using GroupDocs.Watermark as shown in the below code sample.
Clearing a Particular Section of Header&Footer
Using GroupDocs.Watermark, you can also clear a particular section of header&footer as shown in the sample code below.
Adding Watermark to all Images in Header&Footer
GroupDocs.Watermark enables you to add watermark to images inside any header&footer. You can use below code sample to achieve this.