)
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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to view Form fields in the PDF document in PdfViewer control?

Platform: WinForms |
Control: PdfViewer |
Published Date: November 12, 2014 |
Last Revised Date: January 30, 2020

At present, Essential PdfViewer do not support viewing form fields or annotations present in the document. If PDF documents contains Form fields content. We have to flatten the Form fields before loading the document into PDFViewer control by setting the Form flatten value as true.

Code snippet to flatten the form fields.

C#

 

        private void Form1_Load(object sender, EventArgs e)
        {
            //Create an instance PdfLoadedDocument and load the document contain  form fields
            PdfLoadedDocument loadedDocument = new          PdfLoadedDocument("C:/Temp/formfield.pdf");
 
            //Set the flatten property for forms field as true 
            loadedDocument.Form.Flatten = true;
 
            //Save the flatten document 
            loadedDocument.Save();
 
            //Load the flatten document into PDFViewer 
            pdfViewerControl.Load(loadedDocument);
        }
 

 

 

Sample:

http://www.syncfusion.com/downloads/support/directtrac/general/FormFlatten1966188759.zip

 

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
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
Live Chat Icon