The PdfDocument class has the EncryptionSystem property which allows to manage encryption parameters of PDF document. Please read more info in the documentation.
Also please see our PDF Editor Demo. In this demo you can open an existing not encrypted or encrypted PDF document, encrypt not encrypted PDF document, decrypt encrypted PDF document, change the encryption parameters of encrypted PDF document.