using System.Collections.Generic;
public static void Main()
Console.WriteLine("input full directory of pdf file");
var strPath = Console.ReadLine();
Console.WriteLine(strPath);
var pdfExists = Directory.Exists(strPath);
Console.WriteLine("not found");
Document doc = new Document(strPath);
foreach(var page in doc.Pages)
var watermarks = new List<Artifact>();
foreach (Artifact artifact in page.Artifacts)
if (artifact.Subtype == Artifact.ArtifactSubtype.Watermark)
watermarks.Add(artifact);
foreach(var watermark in watermarks)
page.Artifacts.Delete(watermark);