When adding a signature to a pdf document the signature field cannot be filled in because Document restrictions doesn’t allow signing.
Hi Jan,
//create DocumentPrivileges object<o:p></o:p>
DocumentPrivilege privilege = DocumentPrivilege.FillIn;
// allow existing form fields filling and signing existing Signature fields
privilege.ChangeAllowLevel = 2;
//open PDF document
PdfFileSecurity fileSecurity = new PdfFileSecurity();
// bind source PDF file
fileSecurity.BindPdf("c:/pdftest/test_template.signed.pdf");
//set document privileges
fileSecurity.SetPrivilege(privilege);
// save PDF file with new privileges
fileSecurity.Save("c:/pdftest/test_template.signed_Allowed.pdf");