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

Free Support Forum - aspose.com

Set password to PDF rigth

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

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