If I digitally sign a PDF with more then one page and open the singed PDF in Acrobat Reader then I see 2 signatures (one for each page), the first signature is OK but the second shows the document has been modified since it was signed.
In the code I sign each page individually since the PdfSignature class constructor requires a PdfBasePage as a parameter, is it ok? or should I only sign the first or last page?
Attached a screenshot and here is the code I'm using:
PdfCertificate digi = new PdfCertificate("c://temp//test1.pfx", "123456");
PdfSignature signature = new PdfSignature(doc, doc.Pages[0], digi, "Bumpyard");
signature.ContactInfo = "Bumpyard";
signature.Certificated = true;
signature.DocumentPermissions = PdfCertificationFlags.AllowFormFill;
signature = new PdfSignature(doc, doc.Pages[1], digi, "Bumpyard");
signature.ContactInfo = "Bumpyard";
signature.Certificated = true;
signature.DocumentPermissions = PdfCertificationFlags.AllowFormFill;
doc.SaveToFile("DrawText.pdf");
doc.Close();