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

Add other signature to document

Hi,

This is my scenario,

Hi received one pdf document signed digitally via mail and i would like to sign this document - múltiple signature scenario. It is posible?

Your examples show how to sign múltiple at same time in memory  - generate new document and seqüentialy you add two fields of signature,

but i need to sign one document signed and saved to disk previously as Workflow Signature scenario.

Thanks in advance,

Jordi

5 Replies

CM Chinnu Muniyappan Syncfusion Team August 11, 2017 12:11 PM UTC

Hi Jordi, 

Thank you for contacting Syncfusion support. 

Yes, we can add multiple signatures in existing PDF document by using PdfCertificate and PdfSignature instance.  We have created a simple sample for signing existing signed PDF document for your reference.  Please refer the below code snippet and sample for more details. 

            //Load the existing PDF document 
            PdfLoadedDocument ldoc = new PdfLoadedDocument("../../input.pdf"); 
 
            //Creates PDF Certificate. 
            PdfCertificate pdfCert = new PdfCertificate(@"../../PDF.pfx", "syncfusion"); 
 
            //Create a new PDF signature field. 
            PdfSignature signature = new PdfSignature(ldoc, ldoc.Pages[0], pdfCert, "cert"); 
            
            //Set the signature bounds 
            signature.Bounds = new System.Drawing.RectangleF(0, 200, 100, 100);            
 
            //Save the PDF document 
            ldoc.Save("output.pdf"); 
 
            //Close the PDF document 
            ldoc.Close(true); 


Note: If the PDF document is already signed then the signed certificate must allow the document to perform form fill, signing and commenting, otherwise the existing signature was failed. 

Please let us know if you have any concern. 

Regards, 
Chinnu 



JB Jordi Burgas August 14, 2017 06:01 AM UTC

Hi Chinnu,


Perfect! this is the right example!

Is it possible to sign the document even though the first user has not allowed signnin?

In our case we want to sign all the external documents we receive to authenticate them

Thanks!

Jordi



CM Chinnu Muniyappan Syncfusion Team August 15, 2017 07:44 AM UTC

Hi Jordi, 
 
Thank you for your update, 
 
Yes, we can sign the existing signed PDF document even though the first user has not allowed to sign, but the first user signed signature status is getting invalid. Please refer the below screenshot for more details. 
 
 
Please let us know if you have any concern. 
 
Regards, 
Chinnu 



JB Jordi Burgas August 15, 2017 08:57 AM UTC

Hi Chinnu,

This is perfect ! thanks  for your support and for your great, great syncfusions products.

best regards,

Jordi



CM Chinnu Muniyappan Syncfusion Team August 16, 2017 05:18 AM UTC

Hi Jordi, 
 
Thank you for your kind words. 
 
Regards, 
Chinnu 


Loader.
Live Chat Icon For mobile
Up arrow icon