GroupDocs.Watermark for .NET

Create dynamic Watermarks in Word and OpenOffice with C#

Deploy watermarks strategically within your Word documents using our robust C# toolkit. Customize to fit brand standards or security requirements with ease.

Enhance Your Documents: Generate Watermarks for Word 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 Word 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 WORD file

// Provide file to be watermarked
using (Watermarker watermarker = new Watermarker("input.docx"))
{
    // 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 WORD result
    watermarker.Save("output.docx");
}
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

GroupDocs.Watermark for .NET transforms your ability to watermark Microsoft Word documents. This versatile API integrates seamlessly into your development environment, enabling the addition of sophisticated text and image watermarks that can be positioned absolutely or relatively within the document. It supports DOC, DOCX, and RTF formats, providing flexibility across multiple Word versions. Enhance your documents with watermarks that are not only secure but also subtly blend with the content, preserving readability and layout integrity.
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.

C# Powered Watermarking in Word and OpenOffice

Maximize the impact of your MS Word and OpenOffice documents with custom-designed watermarks that offer both protection and professionalism. Our C# API makes it simple to apply precise and appealing watermarks.

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