

The following table lists the permission flags supported by Syncfusion PDF Library.

You can customize the permission settings to allow or restrict certain actions such as: Security.KeySize = PdfEncryptionKeySize.Key256Bit Įxecute this code example to get a PDF document like in the following screenshot. Security.Algorithm = PdfEncryptionAlgorithm.AES PdfSecurity security = document.Security PdfLoadedDocument document = new PdfLoadedDocument("PDF_Succinctly.pdf") The following code example shows how to encrypt a PDF document using a user password in C#.


If the PDF is encrypted with both types of passwords, you can use either password to open it. With the Syncfusion PDF Library, you can protect your PDF documents with either of these passwords, or both of them. Permission password: A permission password, also known as master or owner password, is used to restrict options such as printing, editing, and copying content in a PDF.Document-open password: A document-open password, also known as a user password, is used to open a PDF document.PDF encryption allows users to secure PDF documents with passwords. NET PDF Library that allows users to encrypt and decrypt PDF documents in C# and VB.NET. BoldSign – Electronic Signature Software New.
