Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

PDF security permissions

$
0
0
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.

Viewing all articles
Browse latest Browse all 3131

Latest Images

Trending Articles



Latest Images