Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove watermarks from Documents in .NET
// Remove the watermarks from Word, Excel, PowerPoint, Visio and PDF Documents using C#
using (Watermarker watermarker = new Watermarker("filepath/documentWithWatermarks.pdf"))
{
PossibleWatermarkCollection possibleWatermarks = watermarker.Search();
// Remove watermark at the specified index from the document.
possibleWatermarks.RemoveAt(0);
// Remove specified watermark from the document.
possibleWatermarks.Remove(possibleWatermarks[0]);
watermarker.Save("filepath/documentWithoutWatermarks.pdf");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.