PDF privilege

Hi,

I'm currently evaulating Aspose Total for Java and the file cannot be saved with Adobe Reader after it has been populated programmaticaly with data: "479367Ewithdata1.pdf" and "479367Ewithdata2.pdf".

Is there a way to set a privilege/setting with Aspose so the file "479367Ewithdata1.pdf"or "479367Ewithdata2.pdf" can be subsequently saved with Adobe reader?

The original file "479367Eformsecure.pdf" can have data entered manually and then saved with Adobe Reader.

Code below and also included two attachments.

private int FillPDFform (){
try {
com.aspose.pdf.kit.License license = new com.aspose.pdf.kit.License();
license.setLicense("C:\\Dev\\Aspose.Total.Java.lic");

Form form = new Form("C:\\Dev\\ADP\\479367Eformsecure.pdf","C:\\Dev\\ADP\\479367Ewithdata1.pdf");
// String[] allfields = form.getFieldsNames();
form.setField("lastName", "Doe");
form.setField("firstName", "John");
form.setField("HealthNumber", "1234567890");
form.setField("dateOfBirth", "1978/04/14");
form.close();

PdfFileSecurity fileSecurity = new PdfFileSecurity("C:\\Dev\\ADP\\479367Ewithdata1.pdf", "C:\\Dev\\ADP\\479367Ewithdata2.pdf");
fileSecurity.setPrivilege(PdfPrivilege.AllowAll);
}
catch (Exception ex) {
System.out.println(ex.toString());
}
return 0;

}

Thanks,

Luc

Hi,


I
have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as
PDFKITJAVA-33188. We
will investigate this issue in details and will keep you updated on the status
of a correction.

We
apologize for your inconvenience.