Posted by a ceTe Software moderator
Hello,
Yes, signing multiple digital signatures is included in v11 of DynamicPDF Core Suite for .NET. You will need to load the PDF into a PdfDocument and use the IncrementalUpdateDocument class to sign the document. Please note that you can sign one digital signature in a PDF at time and if you would like to sign multiple signatures you will need to load the singed PDF into another PdfDocument and sign it again using the IncrementalUpdateDocument class.
Here is a code sample for singing a PDF with two signature fields.
//Adding signature to the existing PDF.
PdfDocument pdf = new PdfDocument(@"Path for an input PDF");
//Signing existing signature using IncrementalUpdateDocument object.
ceTe.DynamicPDF.Merger.IncrementalUpdateDocument incdocument = new IncrementalUpdateDocument(pdf);
Certificate certificate = new Certificate(@"Path for certificate file", "password");
incdocument.Sign("signature field name", certificate);
byte[] byteData=incdocument.Draw();
//Signing another signature field.
PdfDocument pdf1 = new PdfDocument(byteData);
ceTe.DynamicPDF.Merger.IncrementalUpdateDocument incdocument1 = new IncrementalUpdateDocument(pdf1);
Certificate certificate1 = new Certificate(@"Certificate file path", "password");
incdocument1.Sign("signature field name", certificate1);
incdocument1.Draw(@"Path to save the document");
Thanks,
ceTe Software Support Team