We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to watermark the fillable PDFs without losing form filling ability in Acrobat Reader?

Platform: WinForms |
Control: PDF
Tags: pdf, form, watermark

You can apply watermark in the existing PDF document without losing the Form fill ability in Acrobat reader. You can achieve this by importing loaded PDF document (PdfLoadedDocument) to a new PDF document (PdfDocument) and apply the Watermark. Refer to the following code example.


            //Load the Existing PDF document
            PdfLoadedDocument document = new PdfLoadedDocument("../../Form.pdf");
            //Initialize new PDF document
            PdfDocument doc = new PdfDocument();
            //Import Loaded document to new PDF document
            doc.ImportPage(document, 0);
            //Initialize Font
            Font f = new System.Drawing.Font("Times new roman", 36, FontStyle.Regular);
            PdfFont font = new PdfTrueTypeFont(f, true);
            //Getting graphics from 1st page
            PdfGraphics g = doc.Pages[0].Graphics;
            //Saving current graphics state
            PdfGraphicsState gs = g.Save();
            //Set transparency for graphics
            //Watermarking in the Graphics
            g.DrawString("Syncfusion Watermark", font, PdfPens.Red, PdfBrushes.Red, new PointF(50, 100));
            //Restoring saved graphics state
            // Save and close the document.


Refer to the following sample link.


2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile