Wordize for .NET is a professional solution for programmatically adding watermarks to documents of various formats. The Watermarker class enables C# developers to add corporate branding to documents and control confidential material distribution through text and image watermark integration. Programmatic document watermarking ensures consistent 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 document, select the watermark type (text or image), configure display parameters, 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.docx", "Output.pdf", "Text");
using Wordize.Watermarking;
Watermarker.SetText("Input.docx", "Output.pdf", "Text");
using Wordize.Watermarking;
using Wordize.Saving;
var imageStreams = Watermarker.SetWatermarkToImages("Input.docx", new ImageSaveOptions(SaveFormat.Pdf), "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}.pdf");
stream.CopyTo(file);
}
using Wordize.Watermarking;
Watermarker.SetImage("Input.docx", "Output.pdf", "Watermark.jpg");
using Wordize.Watermarking;
Watermarker.SetImage("Input.docx", "Output.pdf", "Watermark.jpg");
using Wordize.Watermarking;
using Wordize.Saving;
byte[] watermarkImageBytes = File.ReadAllBytes("Watermark.jpg");
var imageStreams = Watermarker.SetWatermarkToImages("Input.docx", new ImageSaveOptions(SaveFormat.Pdf), 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}.pdf");
stream.CopyTo(file);
}