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

Unit Test pdf annotation and form flatten

Thread ID:





145414 Jun 20,2019 11:37 AM UTC Jul 2,2019 06:39 AM UTC ASP.NET Core - EJ 2 5
Tags: PDF
Boryana Panayotova
Asked On June 20, 2019 11:37 AM UTC

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

Prakash Viswanathan [Syncfusion]
Replied On 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 

Boryana Panayotova
Replied On 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 ?

Surya Kumar [Syncfusion]
Replied On 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 

Boryana Panayotova
Replied On July 1, 2019 08:56 AM UTC

Thank you 

Padmini Ramamurthy [Syncfusion]
Replied On July 2, 2019 06:39 AM UTC

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

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