How to Remove Watermark Annotation from PDF using C#

This tutorial describes the process to remove watermark annotation from PDF using C# with annotation library. It provides a sample working application to delete watermark from PDF using C# and explains all steps how to build sample project for the removal of watermark from PDF. Below you can take a look at the essential steps and code snippet in C# language to delete watermark annotation from PDF.

Steps to Remove Watermark Annotation from PDF using C#

  1. To delete watermark from PDF in C#, install GroupDocs.Annotation for .NET package from the NuGet
  2. Add a reference to the GroupDocs.Annotation namespace to remove annotation in C#
  3. Initialize Annotator class and pass path of input PDF file to its constructor
  4. Initialize SaveOptions class and set AnnotationTypes to AnnotationType.None
  5. To save the final output PDF to disk, call Annotator.Save method

The above stepwise instructions help you to quickly delete watermark from PDF in C#. The annotation library is platform-independent and can easily be used on Windows, macOS, and Linux operating systems without setting up any extra software. By writing few lines of code using this library, you can easily remove watermark from all pages of PDF.

Code to Delete Watermark from PDF using C#

We have developed a sample application to show you how to use annotation library to remove annotation in C# from PDF. The code example is very easy that consumes a couple of API calls. You just need to install the required library and copy this code into your project to remove watermark. Recently, we added an article about adding watermark to PDF, have a look at how to add watermark annotation to PDF using C# guide for more information.

 English