Deutsch Indonesia Tiếng Việt فارسی English Italiano Türkçe ไทย Español Polski Русский 日本語 Français Português العربية

DOC Document Watermarking with C#

Wordize for .NET is a professional solution for protecting DOC documents with watermarks. The Watermarker class enables C# developers to add corporate branding to documents and control confidential DOC material distribution through text and image watermark integration. Watermark addition ensures consistent DOC document branding, copyright protection, and file source tracking capabilities.

Key Features:
  • Text watermarks - the Watermarker.SetText() method adds customizable text overlays to DOC with font, color, size, rotation angle, and transparency control through TextWatermarkOptions
  • Image watermarks - the Watermarker.SetImage() method integrates logos and images (PNG, JPG, SVG) into DOC with scaling, transparency, and positioning settings through ImageWatermarkOptions
  • Flexible watermark positioning on pages: center, corners, diagonal, or custom coordinates
  • Graphics format export capability - the SetWatermarkToImages() method converts protected DOC document pages into image sets
  • Fluent API support for watermarking operations through WatermarkerContext and method chaining, enhancing C# code readability
Use Cases:
  • Automatic addition of company logos to all outgoing DOC documents for enhanced brand recognition
  • Marking confidential DOC materials, technical documentation, and copyrighted works to prevent unauthorized use
  • Adding "DRAFT", "APPROVED", "CONFIDENTIAL" labels for clear DOC document status identification at various approval stages
  • Integration of copyright notices, trademark, and legal restriction notifications into DOC to ensure legislative compliance
  • Adding recipient names, document numbers, or timestamps to create unique file versions
  • DOC document marking with different access levels for information distribution control within organizations

Test the programmatic document watermarking capabilities using the interactive online demo presented on this page. Upload your DOC document, select the watermark type (text or image), run the operation, and download the result with integrated watermarks. The provided C# code snippet is ready for use in your .NET project.

C#
Run code
Upload document
Upload image
Select output format from the list
using Wordize.Watermarking;

Watermarker.SetText("Input.doc", "Output.doc", "Text");
using Wordize.Watermarking; Watermarker.SetText("Input.doc", "Output.doc", "Text"); using Wordize.Watermarking; using Wordize.Saving; var imageStreams = Watermarker.SetWatermarkToImages("Input.doc", new ImageSaveOptions(SaveFormat.Doc), "Text"); foreach (var (stream, page) in imageStreams.Select((s, i) => (s, i))) { using var _ = stream; stream.Position = 0; using var file = File.Create($"Output_{page + 1}.doc"); stream.CopyTo(file); }
using Wordize.Watermarking;

Watermarker.SetImage("Input.doc", "Output.doc", "Watermark.jpg");
using Wordize.Watermarking; Watermarker.SetImage("Input.doc", "Output.doc", "Watermark.jpg"); using Wordize.Watermarking; using Wordize.Saving; byte[] watermarkImageBytes = File.ReadAllBytes("Watermark.jpg"); var imageStreams = Watermarker.SetWatermarkToImages("Input.doc", new ImageSaveOptions(SaveFormat.Doc), watermarkImageBytes); foreach (var (stream, page) in imageStreams.Select((s, i) => (s, i))) { using var _ = stream; stream.Position = 0; using var file = File.Create($"Output_{page + 1}.doc"); stream.CopyTo(file); }
Run code

How to programmatically protect DOC with watermark

  1. Connect Wordize SDK to your .NET project
  2. Call the Watermarker.SetText() method to insert a text watermark or Watermarker.SetImage() for an image watermark, specifying the DOC document and watermark properties as parameters
  3. Get the DOC document with the added watermark
5%