When adding a signature to a pdf document the signature field cannot be filled in because Document restrictions doesn’t allow signing.
Hi Jan,
Thanks for contacting support.
In order to allow PDF signing, please try using the following code snippet. For your reference, I have attached the resultant PDF generated over my end and also the image file showing properties of PDF document.
[C#]
//create DocumentPrivileges object
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");