Security and Portfolios

I am trying to add a password, as well as limit the ability to print pdf files that come through my system. All is well for a standard pdf file, but it seems to have trouble with pdf portfolios. When the file is a portfolio, no security settings are applied (except the initial password), and a cover page recommending upgrade to adobe reader 9 is added.

sample code is:

PdfFileSecurity filesecurity = new PdfFileSecurity(filename, newfilename);

DocumentPrivilege priviledge = DocumentPrivilege.ForbidAll;

filesecurity.EncryptFile(password, null, priviledge, KeySize.x128, Algorithm.AES);

I have noticed that the version of the incoming file is 1.7, and the saved file (encrypted) is 1.6. Does pdf.kit support saving to 1.7? have you had trouble with the security settings with portfolios?


This message was posted using Aspose.Live 2 Forum

Hi Greg,

Thank you very much for considering Aspose.

Please share the input PDF file with us, so we could investigate the issue at our end. You’ll be updated with the results the earliest possible.

We’re sorry for the inconvenience.