GroupDocs.Watermark for .NET enables you to build ready-to-market business applications in C#, ASP.NET and other .NET related technologies, which let your end-users, add new watermarks, search and remove existing watermarks in supported file formats. Using GroupDocs.Watermark for .NET, you can programmatically apply digital watermarks to multitude of file formats and discourage unauthorized use of intellectual property and securely label documents of sensitive nature by employing various built-in security measures offered by this API.
GroupDocs.Watermark for .NET supports multiple types of watermarks. Adding watermarks of any type is only a matter of few lines of code. Following example demonstrates, applying an image watermark to Word document using C#:
// Load the document
using (FileStream stream = File.Open("document.docx", FileMode.Open, FileAccess.ReadWrite))
{
using (Watermarker watermarker = new(Watermarker(stream))
{
// Use path to the image as constructor's parameter
using (ImageWatermark watermark = new ImageWatermark("logo.png"))
{
watermark.HorizontalAlignment = HorizontalAlignment.Center;
watermark.VerticalAlignment = VerticalAlignment.Center;
watermarker.Add(watermark);
}
// Save the resultant document
watermarker.Save("document_watermarked.docx");
}
}
GroupDocs.Watermark API allows you to apply watermark or delete watermark of all files in a specific folder in one go. The files can even be of different format and yet the watermark will be applied to all of them accurately.
With only one line of code you can make it very difficult for any tool to remove your watermark from PDF files. This is achieved by converting all pages of a PDF document to raster images while keeping the original quality intact.