GroupDocs.Watermark for .NET

Secure XLSX Sheets with .NET C#

Use .NET C# to create customizable watermarks for XLSX files, perfect for enhancing document integrity and protecting sensitive information.

Effortlessly Generate Watermarks for Xlsx Documents

GroupDocs.Watermark for .NET: Advanced Watermarking library for .NET applications. Empower your solution and secure documents with watermarks just in time.

  1. Core Class: Watermarker. The main class of our API is Watermarker. You need to instantiate it before document processing. Do not forget to pass the Xlsx file to the constructor as a path or a stream object.
  2. Crafting Your Watermark. The next step is constructing a Watermark object of the desired type. It can be placed not only on a specific document page but also in native document parts like images or headers.
  3. Fine-Tuning Appearance. Set watermark properties such as height and width, top, left, central alignments, fonts and colors, etc.
  4. Applying and Saving. Use the Watermarker method to add a new watermark. Feel free to add as many watermarks as you need. You may save the watermarked document to any location.
// Generate image watermark in XLSX file

// Provide source file path to Watermarker constructor
using (Watermarker watermarker = new Watermarker("input.xlsx"))
{
    // Generate image watermark instance with image file
    using (ImageWatermark watermark = new ImageWatermark("watermark.png"))
    {
        watermarker.Add(watermark);
    }
    // Save watermarked XLSX result
    watermarker.Save("output.xlsx");
}
dotnet add package GroupDocs.Watermark
click to copy
copied
More examples Documentation

Elevate Your Watermarking Game

Unlock advanced watermarking capabilities with our GroupDocs.Watermark API for .NET. This powerful tool allows for precise customization and application of watermarks across various document types to ensure maximum security and copyright adherence with minimal visual disruption.

Comprehensive Watermarking Solutions

Sophisticated Tiling Options

Extend your watermarks across entire documents seamlessly with our tiling options. This feature allows watermarks to cover the full document area, preventing removal and ensuring complete document protection without compromising on design or readability.

Vibrant Color Customization

Add a splash of color to your watermarks! Our API enables full spectrum color customization, allowing you to apply watermarks that perfectly match your corporate branding or document style. Enhance visual appeal while maintaining robust security features.

Enhanced Security Settings

Take document security to the next level with advanced watermark settings. Configure multi-layer watermarks, incorporating both visible and invisible elements, to protect against unauthorized copying and ensure only intended recipients can access critical information.

Generate PowerPoint watermark

This example shows how to add watermark to the PPTX background images

C#


    //  Load PPTX presentation
    var loadOptions = new PresentationLoadOptions();
    using (Watermarker watermarker = new Watermarker("source.pptx", loadOptions))
    {
        //  Set up watermark properties
        TextWatermark watermark = new TextWatermark("Protected image", new Font("Arial", 8));
        watermark.HorizontalAlignment = HorizontalAlignment.Center;
        watermark.VerticalAlignment = VerticalAlignment.Center;
        watermark.RotateAngle = 45;
        watermark.SizingType = SizingType.ScaleToParentDimensions;
        watermark.ScaleFactor = 1;

        //  Watermark slides background
        PresentationContent content = watermarker.GetContent<PresentationContent>();
        foreach (PresentationSlide slide in content.Slides)
        {
            if (slide.ImageFillFormat.BackgroundImage != null)
            {
                slide.ImageFillFormat.BackgroundImage.Add(watermark);
            }
        }

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

GroupDocs.Watermark for .NET

GroupDocs.Watermark for .NET provides a powerful solution for .NET C# developers to generate, add, and manage watermarks in XLSX files. This API is essential for maintaining the confidentiality and authenticity of Excel documents, especially in corporate, financial, and legal environments. Customize your watermarks with a variety of options, including text and image overlays, designed to be both functional and subtle. Additional features allow for automated watermarking based on document properties and user-defined conditions, ensuring that your watermarks are applied consistently and only where needed. GroupDocs.Watermark is compatible with contemporary .NET platforms and supports advanced Excel functionalities.
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.

Implementing Watermarks in XLSX with C#

Deploy .NET C# to efficiently add advanced, secure watermarks to XLSX files, safeguarding your professional Excel data.

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