We are interesed in buying Aspose.PDF (Java) but we need to be sure that we can achieve some requirements.
I need to flatten a XFA Dynamic Form and make it ready to sign (“Signing” property set to “Allowed”). We have been able to flatten the XFA form to a regular PDF but when I have tried to set the “Signing” property to “Allowed”, I could not find a way to do it.
Here is the code:
Document oDocument = new Document(ai_sInputPDF);
// Allow all privileges on the document
DocumentPrivilege oPrivilege = DocumentPrivilege.getAllowAll();
// Set the desired privileges
PdfFileSecurity oFileSecurity = new PdfFileSecurity(oDocument);
I can set set different privileges of “DocumentPrivilege” to “true” one by one, but I did not find a way to set “Signing” privileges.
Thanks in advance.