Hello,
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);
oDocument.getForm().flatten();
// Allow all privileges on the document
DocumentPrivilege oPrivilege = DocumentPrivilege.getAllowAll();
// Set the desired privileges
PdfFileSecurity oFileSecurity = new PdfFileSecurity(oDocument);
oFileSecurity.setPrivilege(oPrivilege);
oDocument.save(ai_sOutputPDF);
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.
Miriam