<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
You can set the file security using PdfFileSecurity class in Aspose.Pdf.Facades namespace. Please see the following documentation link for details and sample code as per your requirement.
Please feel free to contact support in case you need any further assistance.
Thank You & Best Regards,