I want to remove water mark existing pdf using C#

I want to remove water mark existing pdf using c#.


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()
    /// <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";
            // Start the process with the info we specified.
            // Call WaitForExit and then the using statement will close.
            using (Process exeProcess = Process.Start(startInfo))
            // Log error.


VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!