Hi,
I'm trying to set the permissions for a PDF document with aspose.Pdf.
I'd like to allow the end user to have all permissions.
Here's my code:
Permissions Permission = (Permissions.PrintingQuality | Permissions.PrintDocument | Permissions.ModifyTextAnnotations | Permissions.FillForm | Permissions.ModifyContent | Permissions.ExtractContentWithDisabilities | Permissions.ExtractContent | Permissions.AssembleDocument);
doc.Encrypt("UserPassword", null, Permission, CryptoAlgorithm.RC4x128);
doc.Save(Path);
I get the same result if I do:
doc.Encrypt("UserPassword", null, DocumentPrivilege.AllowAll, CryptoAlgorithm.RC4x128,true);
If I open the document with my pdf reader, I see that the "Page Extraction" permission is not allowed.
Is there any way to set it?
Thanks,
Devid.