Password Protection is NOT Working When Opening PDF in Mobile

Hi,


I have applied password protection for PDF file using Aspose.PDF V8.2.0.0. The password protection is working fine in my PC but when I open the same PDF using any mobile, the PDF file is not prompting for user password. See below code snippet which I used to apply password protection.

Aspose.Pdf.Facades.PdfFileSecurity PDFFileSecurity = new PdfFileSecurity(tempstrFullFilePath, strFullFilePath);
DocumentPrivilege documentPrivilege = DocumentPrivilege.ForbidAll;
// Only allow screen reading
documentPrivilege.AllowModifyContents = true;
documentPrivilege.AllowPrint = true;
documentPrivilege.AllowModifyAnnotations = true;
PDFFileSecurity.EncryptFile(“password”, “”, documentPrivilege, KeySize.x128, Algorithm.RC4);

Please let me know if I am missing anything to include.

I have attached the sample PDF and the password is "pwcwelcome1"

Regards,
Vijay

Hi Vijay,

Thanks for your inquiry. I have tested the scenario on mobile and managed to observe the reported issue. For further investigation, I have logged an issue in our issue tracking system as PDFNEWNET-38486 and also linked your request to it. We will keep you updated via this thread regarding the issue status.

Please feel free to contact us for any further assistance.

<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif”;mso-fareast-font-family:
Calibri;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:
AR-SA”>Best Regards

A post was split to a new topic: Password Protection does not work for PDF