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 Enable/Disable re-sign pdf after pdf has been signed with syncfusion

Thread ID:

Created:

Updated:

Platform:

Replies:

149141 Nov 15,2019 02:38 PM UTC Nov 18,2019 02:50 PM UTC ASP.NET MVC - EJ 2 2
loading
Tags: PDF
Clement GIL
Asked On November 15, 2019 03:51 PM UTC

Hi,

I would like to know if there is an option/property that allows me to re-sign a PDF.
For example if value set to true => so I can re-sign with Adobe reader for example
If value set to false => no one can re-sign after the first signature done with syncfusion

Thanks for your help

Sowmiya Loganathan [Syncfusion]
Replied On November 18, 2019 01:43 PM UTC

Hi Clement, 

Thank you for contacting Syncfusion support.  

We can achieve your requirement by using the properties “Certificated” and “DocumentPermissions” of PdfSignature.  If we set document permission as ForbidChanges and enable the Certificated property, the first signature fails if we resign the document.  

Code Snippet:  

//Creates a digital signature 
PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); 
 
//Sets signature information 
signature.Bounds = new RectangleF(bounds); 
 
signature.Certificated = true; 
signature.DocumentPermissions = PdfCertificationFlags.ForbidChanges; 

Output document screenshot:  
   

At the same time, if we choose document permission as AllowComments/AllowFormFill and enable the Certified property, the first signature is valid even if we sign another signature to the document. 

Code Snippet: 

//Creates a digital signature 
PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); 
 
//Sets signature information 
signature.Bounds = new RectangleF(bounds); 
 
signature.Certificated = true; 
signature.DocumentPermissions = PdfCertificationFlags.AllowFormFill | PdfCertificationFlags.AllowComments; 


Output document screenshot:  

 

Note: The document permissions only work when we enable the Signature.Certificated  property. 

Kindly try the above solution in your end and let us know the if it satisfies your requirement.  

Regards, 
Sowmiya Loganathan 



Clement GIL
Replied On November 18, 2019 02:50 PM UTC

Ok thanks for you help. 
Best Regards.

Clément

CONFIRMATION

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