Represents the security settings of the PDF document.
Namespace: Spire.Pdf.SecurityAssembly: Spire.Pdf (in Spire.Pdf.dll) Version: 7.9.2.0 (7.9.2.1020)
Syntax
| C# | Visual Basic | Visual C++ | F# |
public class PdfSecurity
Public Class PdfSecurity
public ref class PdfSecurity
type PdfSecurity = class end
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| PdfSecurity()()()() |
Initializes a new instance of the class.
| |
| Encrypt(String) |
To Encrypt the PDF document with open password.
Note:If set empty string value to open password, it indicates that the PDF document can be operated without providing corresponding password.
| |
| Encrypt(String, PdfPermissionsFlags) |
To Encrypt the PDF document with permission password and permissions.
Note:The Permission password can't be empty string.
| |
| Encrypt(String, String, PdfPermissionsFlags, PdfEncryptionKeySize) |
To Encrypt the PDF document and set the encryption key size and permissions.
Note:If set empty string value to open password or permission password, it indicates that the PDF document can be operated without providing corresponding password.
| |
| Encrypt(String, String, PdfPermissionsFlags, PdfEncryptionKeySize, String) |
To Encrypt the PDF document with open password and permission password,and set the encryption key size and permissions.
Note:If set empty string value to open password or permission password, it indicates that the PDF document can be operated without providing corresponding password.
| |
| Equals(Object) |
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.) | |
| Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| KeySize |
Gets the size of the key.
| |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| OriginalEncrypt |
Indicate whether this pdf document was encrypted originally or not.
| |
| OwnerPassword |
Gets the owner password.
| |
| Permissions |
Gets the document's permission flags
| |
| ToString()()()() |
Returns a String that represents the current Object.
(Inherited from Object.) | |
| UserPassword |
Gets the user password.
|
Inheritance Hierarchy
System..::..Object
Spire.Pdf.Security..::..PdfSecurity
Spire.Pdf.Security..::..PdfSecurity