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 do Form Filling in WindowsForms using PdfViewerControl?

Platform: WinForms |
Control: PdfViewer

How to do Form Filling in WindowsForms using PdfViewerControl?

At Present we do not have support for Form Filling in Windows Forms using PdfViewerControl. However we have created a workaround to perform the same action in Windows Forms.

The following code snippet from the attached sample is an example to add a Field at particular location.


        /// <summary>
        /// Adds the Fields for particular page
        /// </summary>
        /// <param name="index">Index of the page</param>     
        public void AddFields(int index)
            //FormFilesDictionary contans all the fields of particlar PDF page
            foreach (var currentField in FormFilesDictionary[index])
                PdfPageBase page = ((PdfField)currentField).Page;
                //Adds a textbox if the current Field is Textbox
                if (currentField is PdfLoadedTextBoxField)
                    PdfLoadedTextBoxField txtField = currentField as PdfLoadedTextBoxField;
                    TextBox txtBlock = new TextBox();                    
                    txtBlock.Text = txtField.Text;                  
                    // Textbox will get added to the Page

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/FillableForm-1443353139


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