Aspose.PDF for .NET allows you to set privileges on an existing PDF file. You can use the Encrypt method of the Document object to encrypt a PDF file. Also, you can decrypt PDF files using the owner’s password or change the password of a PDF file. For more details visit the documentation page.