GroupDocs.Watermark for .NET C# API

C# .NET for Excel Watermark Operations

Enhance your Excel document workflows in .NET environments by seamlessly removing or editing watermarks, with tools designed for precision and ease of use.

Remove Watermarks from Excel Documents Using .NET

GroupDocs.Watermark simplifies the task of removing watermarks from business documents. Empower your .NET application by integrating our library and follow these simple steps:

  1. Begin by instantiating the main class, Watermarker, with the Excel document. Our API supports processing documents provided as either a stream or a local path.
  2. Utilize SearchCriteria to narrow down the set of watermarks to be processed. You can use various parameters such as images, text, or formatting features. The more specific the search parameters you provide, the more precise the results you obtain.
  3. Process the list of document watermarks obtained as a search result and remove them from the document.
  4. After removing the watermarks, save the resulting document as a local file or a byte stream.
// Remove text watermark from Excel document

// Provide Watermarker instance for document Excel source document
using (Watermarker watermarker = new Watermarker("input.xslx"))
{
    // Remove selected watermarks from the document
    TextFormattingSearchCriteria criteria = new TextFormattingSearchCriteria();
    criteria.ForegroundColorRange = new ColorRange();
    criteria.FontBold = true;
    PossibleWatermarkCollection watermarks = watermarker.Search(criteria);
    watermarks.Clear();

    // Save file to provided path
    watermarker.Save("output.xslx");
}
dotnet add package GroupDocs.Watermark
click to copy
copied
More examples Documentation

Streamline Watermark Removal with C# .NET API

Discover the powerful watermark removal capabilities of our C# .NET API, designed to seamlessly integrate with your .NET applications. Remove or clear watermarks from PDFs and office documents efficiently while preserving the original file quality.

Remove Watermark

Precise Watermark Clearance

Our .NET API provides precise tools to cleanly remove watermarks from any document. Tailored for developers, this feature ensures that removing watermarks does not compromise document quality or layout.

Automate Bulk Watermark Removal

Automate the process of removing watermarks from large document sets with our .NET API. Ideal for businesses that handle large volumes of documents, improving both efficiency and document security.

Advanced Watermark Editing Features

Leverage advanced features to selectively edit out or modify watermarks. Our API supports detailed adjustments to ensure your documents maintain a professional appearance while securing sensitive information.

Remove spreadsheets text watermark

How to remove text watermarks with special formatting in Excel docs.

C#


    //  Load Excel workbook
    var loadOptions = new SpreadsheetLoadOptions();
    using (Watermarker watermarker = new Watermarker("source.xlsx", loadOptions))
    {
        //  Get content and find appropriate watermark
        SpreadsheetContent content = watermarker.GetContent<SpreadsheetContent>();
        foreach (SpreadsheetWorksheet section in content.Worksheets)
        {
            for (int i = section.Shapes.Count - 1; i >= 0; i--)
            {
                foreach (FormattedTextFragment fragment in section.Shapes[i].FormattedTextFragments)
                {
                    if (fragment.ForegroundColor.Equals(Color.Red) && fragment.Font.FamilyName == "Arial")
                    {
                        //  Remove text watermark
                        section.Shapes.RemoveAt(i);
                        break;
                    }
                }
            }
        }

        //  Save processed XLSX
        watermarker.save("result.xlsx");
    }

GroupDocs.Watermark for .NET C# library

The GroupDocs.Watermark for .NET C# library provides robust tools for managing watermarks in Excel files. From removing unwanted marks to editing existing ones, it facilitates comprehensive watermark control, ideal for businesses that prioritize document cleanliness and professionalism.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Watermark for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Streamlining Excel Watermark Removal in .NET

Learn how to apply the GroupDocs.Watermark for .NET C# API to efficiently remove watermarks from Excel sheets, ensuring pristine and presentable financial reports and data analyses.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English