We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PDF different permissions based on a condition

is it possible to allow copying or allow deleting Annotations only when a user enters a password or any other condition ?
otherwise, he is prevented from copying( ctrl+c) -from the keyboard and the mouse too-and deleting Annotations but can read and see the pdf content?

@Sara_Ghonim

We need to investigate this requirement and an investigation ticket as PDFNET-53436 has been logged in our issue management system for the purpose. We will check it in details and investigate the feasibility. Meanwhile, would you please share if you were able to generate such a PDF using Adobe Reader? If so, can you please share that with us as well?

image.png (24.3 KB)

as it is clear in the above image
I can generate such a pdf that any one can access/read but in the same time it is protected by a permission password when entering this password it will allow copying and any specified features

is disallowing copying for accessibility possible with aspose or not?

@Sara_Ghonim

Disallowing certain permissions is feasible using the API. Furthermore, the API also provides a feature to set user as well as owner password for a PDF. You can check further information in the below documentation article:

Aspose.Pdf.Facades.DocumentPrivilege class can be used to access and specify different permissions as shown in the above shared article.

thank you very much
another question please how can I remove a redaction annotation and show the text again or it is permanently removed?

@Sara_Ghonim

Do you want to remove the redaction from an existing PDF document? Can you please share that PDF with us so that we can further proceed to assist you accordingly?