We would like to secure a PDF file with a password and only allow opening and printing of the PDF. We are using the following code:
Dim fileSecurity As New Facades.PdfFileSecurity(SourceFile, DestinationFile)
Dim privilege As Facades.DocumentPrivilege
privilege = Facades.DocumentPrivilege.ForbidAll
privilege.AllowPrint = True
fileSecurity.EncryptFile(PasswordStr, PasswordStr, privilege, Facades.KeySize.x256, Facades.Algorithm.AES)
This seesm to work fine and correctly encrypts the PDF and secures it with the password to open the file and you are allowed to print from windows devices correctly, however when printing from an IOS device such as an iPhone it gives an addition prompt when printing saying the following:
'Without the proper password, you do not have permission to print this document. Enter the password to unlock printing".
You then have to enter the owner password to print the document.
We are currenly using aspose.pdf versions 17.3 but have also tested with the latest version (18.1) and have the same behaviour.
Is there something we can do to allow printing without the owner password?