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

Free Support Forum - aspose.com

Pdf.kit security

Dear Sir,

I buy pdf.kit one year ago and now I try to applicate a security to an existing PDF with this code:

Aspose.Pdf.Kit.License license = new Aspose.Pdf.Kit.License();


PdfPrivilege privilege = 0;

privilege = privilege | PdfPrivilege.Print;privilege = privilege |

PdfPrivilege.ScreenReaders; PdfFileSecurity pdfSecurity = new PdfFileSecurity(infile, outfile);

bool ris = pdfSecurity.EncryptFile("", "", privilege, true);

I obtain a pdf file that is not protected to write

Any help?

Sorry for my poor english

thank you

best regards

This message was posted using Aspose.Live 2 Forum


I have tested this and am not able to reproduce the error. Can you please provide us with the pdf file that you are using as input as well as the output that you got. Also tell us the verion of Aspose.Pdf.Kit that you are using.