I want to remove water mark existing pdf using c#.
Customer
----------------------------------------
Thanks for your message, you can use "PDF Text Replacer Command Line" to remove text watermark from PDF pages easily, please look at following web page for more information,
You can also call pdftr.exe from C# code to batch remove text watermark from PDF pages, for example,
using System.Diagnostics;
class Program
{
static void Main()
{
LaunchCommandLineApp();
}
/// <summary>
/// Launch the legacy application with some options set.
/// </summary>
static void LaunchCommandLineApp()
{
// Use ProcessStartInfo class
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.CreateNoWindow = false;
startInfo.UseShellExecute = false;
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.FileName = "D:\\VeryPDF\\pdftr.exe";
startInfo.Arguments = "-contentreplace \"watermark=> \" D:\\in.pdf D:\\out.pdf";
try
{
// Start the process with the info we specified.
// Call WaitForExit and then the using statement will close.
using (Process exeProcess = Process.Start(startInfo))
{
exeProcess.WaitForExit();
}
}
catch
{
// Log error.
}
}
}
VeryPDF