Pdf | |
The PdfSecurityManager type exposes the following members.
| Name | Description | |
|---|---|---|
| PdfSecurityManager | Instantiates the PdfSecurityManager object. |
| Name | Description | |
|---|---|---|
| CanAccessibilityCopyContent | Allows content accessibility copying. | |
| CanAssembleDocument | Allows inserting, rotating or deleting pages or bookmarks. | |
| CanCopyContent | Allows content copying. | |
| CanEditAnnotations | Allows annotations editing. | |
| CanEditContent | Allows content editing. | |
| CanFillFields | Allows form filling. | |
| CanFullQualityPrint | Allows full quality printing. | |
| CanPrint | Allows printing. | |
| EncryptionAlgorithm | Gets or sets the encryption algorithm. | |
| EncryptionKeySize | Gets or sets the length of the encryption key. | |
| OwnerPassword | Gets or sets the owner password. | |
| UserPassword | Gets or sets the user password. |
| Name | Description | |
|---|---|---|
| Close |
Closes the opened pdf document.
(Inherited from PdfManager) | |
| GetDocument |
Returns the pdf document as PdfDocument object.
(Inherited from PdfManager) | |
| Load(Byte) |
Loads a pdf document from a byte array.
(Inherited from PdfManager) | |
| Load(PdfDocument) |
Loads a pdf document from an existing PdfDocument object.
(Inherited from PdfManager) | |
| Load(Stream) |
Loads a pdf document from the specified stream.
(Inherited from PdfManager) | |
| Load(String) |
Loads a pdf document from an existing pdf file.
(Inherited from PdfManager) | |
| Load(Byte, String) |
Loads a password protected pdf document from a byte array.
(Inherited from PdfManager) | |
| Load(PdfDocument, String) |
Loads a pdf document from an existing password protected PdfDocument object.
(Inherited from PdfManager) | |
| Load(Stream, String) |
Loads a pdf document from a stream containing a password protected pdf document.
(Inherited from PdfManager) | |
| Load(String, String) |
Loads a pdf document from an existing password protected pdf file.
(Inherited from PdfManager) | |
| Save |
Saves the pdf document as byte array.
(Inherited from PdfManager) | |
| Save(Stream) |
Saves the pdf document to the specified stream.
(Inherited from PdfManager) | |
| Save(String) |
Saves the pdf document to the specified file.
(Inherited from PdfManager) | |
| Sign(String, String) | Sign the pdf document with the specified certificate. | |
| Sign(String, String, String) | Sign the pdf document with the specified certificate. | |
| Sign(String, String, String, String, String, String) | Sign the pdf document with the specified certificate. | |
| Sign(String, String, String, String, String, String, Int32, RectangleF) | Sign the pdf document with the specified certificate. | |
| Sign(String, String, String, String, String, String, Int32, RectangleF, TimeStampAuthority) | Sign the pdf document with the specified certificate. |
// load the pdf document using the advanced security manager PdfSecurityManager security = new PdfSecurityManager(); security.Load(file); // encryption algorithm and key length security.EncryptionAlgorithm = PdfEncryptionAlgorithm.AES; security.EncryptionKeySize = PdfEncryptionKeySize.EncryptKey256Bit; // set document passwords security.OwnerPassword = "test1"; security.UserPassword = "test2"; //set document permissions security.CanAssembleDocument = false; security.CanCopyContent = true; security.CanEditAnnotations = true; security.CanEditContent = true; security.CanFillFields = true; security.CanPrint = true; // add the digital signature security.Sign(certFile, "selectpdf"); // save pdf document security.Save(Response, false, "Sample.pdf"); // close pdf document security.Close();