GroupDocs.Watermark for .NET API

Add Dynamic Watermarks in Excel Using .NET C#

Automate the application of dynamic text or image watermarks across your Excel files using C#. Our tutorials show you how to maintain consistency and professionalism, with minimal manual intervention required.

Enhance Your Documents: Generate Watermarks for Excel using .NET

GroupDocs.Watermark for .NET is a library that simplifies adding watermarks to various business file formats for .NET developers. Integrate our library into your application and effortlessly watermark documents using these following steps:

  1. Initiating Your Watermarking Journey: Start by acquainting yourself with the Watermarker class, the cornerstone of our API. To begin the process, ensure you instantiate it prior to document processing. Don’t overlook the importance of providing the Excel file to the constructor, whether it’s a path or a stream object.
  2. Crafting Custom Watermarks: Move on to the next phase by creating a Watermark object tailored to your specifications. This versatile tool isn’t limited to specific document pages; it can also be seamlessly integrated into native document elements like attachments or headers.
  3. Fine-tuning Watermark Attributes: Refine your watermarking experience by adjusting properties such as height, width, page alignment, font family, and color. This level of customization ensures your watermarks blend seamlessly with your documents.
  4. Applying Your Watermarks: Utilize the Watermarker method to effortlessly apply your custom watermarks to your documents. Whether you need to add one or multiple watermarks, this process offers flexibility. For added security, consider saving your processed documents in a separate location.
// Generate text watermark in EXCEL file

// Provide file to be watermarked
using (Watermarker watermarker = new Watermarker("input.xslx"))
{
    // Generate text watermark instance
    Font font = new Font("Arial", 19, FontStyle.Bold | FontStyle.Italic);
    TextWatermark watermark = new TextWatermark("my watermark", font);
    watermark.ForegroundColor = Color.Red;
    watermark.BackgroundColor = Color.Blue;
    watermarker.Add(watermark);

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

Deep dive into Adding Watermarks

Leverage our powerful API to render, display, convert, and manage documents, slides, diagrams, and various other document types within .NET applications. GroupDocs.Watermark seamlessly integrates watermarking capabilities to enhance document security and copyright protection.

Add Watermark

Watermark Your Documents Effortlessly

GroupDocs.Watermark empowers .NET developers to easily integrate watermarking into their applications. Add text, image, or dynamic watermarks to popular business documents and files effortlessly, ensuring your content is secure and branded consistently across all platforms.

Tailor Watermarks to Meet Your Needs

Customize watermarks to match your specific requirements with extensive features supported by GroupDocs.Watermark. Adjust size, rotation, transparency, color, and font to ensure your watermark not only looks perfect but also enhances document security without obstructing important information.

Harness Native Document Features for Watermarking

Utilize the inherent features of document formats for sophisticated watermarking. Whether it’s using native PDF annotations, MS Word backgrounds, or Excel headers and footers, GroupDocs.Watermark integrates deeply with document structures to apply watermarks that are both effective and minimally invasive.

Generate image watermark for DOCX

This example shows how to apply image effects to the shape watermarks.

C#


    //  Load Word document
    var loadOptions = new WordProcessingLoadOptions();
    using (Watermarker watermarker = new Watermarker("source.docx", loadOptions))
    {
        //  Set up watermark options
        using (ImageWatermark watermark = new ImageWatermark("logo.png"))
        {
            WordProcessingImageEffects effects = new WordProcessingImageEffects();
            effects.Brightness = 0.7;
            effects.Contrast = 0.6;
            effects.ChromaKey = Color.Red;
            effects.BorderLineFormat.Enabled = true;
            effects.BorderLineFormat.Weight = 1;

            WordProcessingWatermarkSectionOptions options = new WordProcessingWatermarkSectionOptions();
            options.Effects = effects;

            //  Generate watermark
            watermarker.Add(watermark, options);
        }

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

GroupDocs.Watermark for .NET library

GroupDocs.Watermark for .NET enables seamless integration of watermarks into Excel spreadsheets, providing businesses with the tools necessary to secure and personalize their documents. This C# library supports a variety of watermark types and allows for detailed customization, including opacity, rotation, and alignment adjustments. Additionally, it comes equipped with advanced search capabilities to detect and manage existing watermarks, ensuring your spreadsheets are protected against tampering and unauthorized disclosures.
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.

Embedding text and image Watermarks in Excel using C#

Utilize the GroupDocs.Watermark C# API to efficiently add custom watermarks to Excel spreadsheets. Enhance document security and corporate branding with tools designed for fast and flexible watermark integration.

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