GroupDocs.Watermark for .NET C# API

Watermarks Removal in PDF files using C# .NET

Utilize the GroupDocs.Watermark for .NET C# API to seamlessly clear watermarks from PDF documents, perfect for maintaining document integrity and clarity.

Programmatically Remove Watermarks from Pdf Documents using .NET

GroupDocs.Watermark empowers .NET developers to programmatically remove watermarks from various Pdf documents. This guide outlines the process:

  1. Initiate the workflow by supplying your Pdf file as an argument to the Watermarker class constructor. The file can be provided as either a byte stream, a file stream, or a reference to a local disk location.
  2. Leverage the power of the SearchCriteria object to identify the specific watermarks requiring removal. This object enables the filtering of watermarks based on properties previously embedded within the document. You can utilize an image as a search parameter alongside text or formatting attributes for a highly granular search.
  3. Following a successful search, you’ll receive a collection of relevant watermarks. These watermarks offer granular control, allowing you to perform the removal operation.
  4. Upon completion of watermark removal, persist the modified document. The API facilitates storage using either a local file path or a stream object.
// Remove image watermark in PDF document

// Instantiate Watermarker passing PDF document
using (Watermarker watermarker = new Watermarker("input.pdf"))
{
    // Remove watermarks which were found in the document
    SearchCriteria searchCriteria = new ImageDctHashSearchCriteria(logo.png);
    PossibleWatermarkCollection watermarks = watermarker.Search(searchCriteria);
    possibleWatermarks.Remove(watermarks[0]);

    // Save the document
    watermarker.Save("output.pdf");
}
dotnet add package GroupDocs.Watermark
click to copy
copied
More examples Documentation

Advanced Watermark Removal with C# .NET API | GroupDocs.Watermark

Unlock advanced watermark removal capabilities with our C# .NET API. Designed for seamless integration with .NET applications, this API facilitates the removal of watermarks from PDFs and Office documents, ensuring high-quality, unmarked outputs for professional use.

Remove Watermark

Precision Watermark Removal in .NET

Our C# API is engineered to provide precise watermark removal, ensuring that your documents retain their original quality and format. Ideal for legal, educational, and professional documents where clarity and authenticity are crucial.

Automate Watermark Deletion by C#

Enhance your application’s efficiency with automated watermark deletion capabilities. Our API allows for the processing of extensive document batches, facilitating large-scale operations without compromising performance.

Edit and Clear Watermarks Dynamically

Gain the flexibility to dynamically edit or completely remove watermarks as per your application’s needs. This feature supports various customization options, enabling .NET developers to maintain document aesthetics and integrity under varying requirements.

Presentation background watermark remove

This example shows how to remove the background image of a particular slide.

C#


    //  Load presentation
    var loadOptions = new PresentationLoadOptions();
    using (Watermarker watermarker = new Watermarker("source.pptx", loadOptions))
    {
        //  Get presentation content
        PresentationContent content = watermarker.GetContent<PresentationContent>();

        //  Remove slide background watermark
        content.Slides[0].ImageFillFormat.BackgroundImage = null;

        //  Save document
        watermarker.save("result.pptx");
    }

GroupDocs.Watermark for .NET C# library

The GroupDocs.Watermark for .NET C# library provides powerful tools for managing watermarks in PDF documents. From simple removals to advanced edits, this API offers precise control over watermark elements, ensuring that your PDF maintain their original quality and layout.
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.

Enhancing PDF with C# .NET Watermark Removal

Explore how the GroupDocs.Watermark for .NET C# API can streamline the process of removing watermarks from PDF files, ensuring clear and professional document outputs.

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