Set password to PDF rigth

How to set password to pdf file using Aspose.PDF?

@Taske,
There are two levels of password, one is MasterPassword and the other is UserPassword. You can use the DocumentPrivilege class to encrypt an existing PDF with user and owner password. Please refer to the following help topic: Set Privileges on an Existing PDF File

Best Regards,
Imran Rafique