Document assembly is not set to "Allowed" even after setting the related property in java

Please find the below snippet which is used to change the document restriction properties like document assembly,content copying etc.,
Document doc = new Document(“sample.pdf”);
PdfFileInfo info = new PdfFileInfo(doc);
DocumentPrivilege p = info.getDocumentPrivilege();
p.setAllowAssembly(true);
p.setAllowCopy(false);
PdfFileSecurity fileSecurity = new PdfFileSecurity();
fileSecurity.bindPdf(doc);
fileSecurity.setPrivilege§;
fileSecurity.save(“sampleUpdated”);

1.Document assembly is set to “false” in base document by default.
2.Trying to change it to “true” for allowing document assembly as true,which is not working.

Observation:The same approach is working for content copying to make it as true and vice versa

@NayanaN

Would you please also share your sample PDF document with us so that we can test the scenario in our environment and address it accordingly.

Please find the sample document sample.pdf (34.7 KB)

@NayanaN

We were able to replicate the similar issue in our environment with Aspose.PDF for Java 20.5 and logged it as PDFJAVA-39501 in our issue management system. We will further look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.