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

Unit Test pdf annotation and form flatten

I need to unit test for pdf annotation and form flatten.
What must be the result of the correctly passed process of flattening?

5 Replies

PV Prakash Viswanathan Syncfusion Team June 21, 2019 07:13 AM UTC

Hi Boryana, 

Thank you for contacting Syncfusion support.  

While flatten the form/annotation, internally we removed the form fields/annotations and rendered as a text/shapes. So, the resultant document does not have the annotation/form to perform the Unit test. To ensure the annotation/form flattening, you should compare the output document with actual documents using the image comparison.  

Please let us know if you need any further assistance on this.  

Prakash V 

BP Boryana Panayotova June 21, 2019 12:05 PM UTC

Thank you Prakash for your response,
I've found an example for winforms, is there one for .net core ?

SK Surya Kumar Syncfusion Team June 24, 2019 12:59 PM UTC

Hi Boryana, 

You can perform the same image comparison test with annotation and form fields PDF using any third party image comparison tool which is supported in .Net core platform. Let us know if you need any further information. 

Surya Kumar 

BP Boryana Panayotova July 1, 2019 08:56 AM UTC

Thank you 

PR Padmini Ramamurthy Syncfusion Team July 2, 2019 06:39 AM UTC

Hi Boryana, 
You are welcome and please get back to us if you need any other assistance. 

Live Chat Icon For mobile
Up arrow icon