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: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.
using Wordize.Watermarking;
Watermarker.SetText("Input.doc", "Output.doc", "Text");
using Wordize.Watermarking;
Watermarker.SetText("{{input1}}", "{{output}}", "{{text1}}");
using Wordize.Watermarking;
using Wordize.Saving;
var imageStreams = Watermarker.SetWatermarkToImages("{{input1}}", new ImageSaveOptions(SaveFormat.{{saveFormat}}), "{{text1}}");
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}.{{outputExt}}");
stream.CopyTo(file);
}
using Wordize.Watermarking;
Watermarker.SetImage("Input.doc", "Output.doc", "Watermark.jpg");
using Wordize.Watermarking;
Watermarker.SetImage("{{input1}}", "{{output}}", "{{input2}}");
using Wordize.Watermarking;
using Wordize.Saving;
byte[] watermarkImageBytes = File.ReadAllBytes("{{input2}}");
var imageStreams = Watermarker.SetWatermarkToImages("{{input1}}", new ImageSaveOptions(SaveFormat.{{saveFormat}}), 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}.{{outputExt}}");
stream.CopyTo(file);
}
Connect Wordize SDK to your .NET project
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
Get the DOC document with the added watermark