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

Free Support Forum - aspose.com

Owner Password Required to Print From IOS Device

Hi,

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?

@ashleybeccles,

Kindly let us know the IOS version and application name which you are using to open the PDF document. We will investigate and share our findings with you.

@ashleybeccles,

In addition to the above reply, kindly let us know how you are printing output PDF on IOS device, e.g. which application you are using to print.