Click or drag to resize
Pdf Library for .NET

PdfSecurityManager Methods

The PdfSecurityManager type exposes the following members.

Methods
 NameDescription
Public methodCloseCloses the loaded document and releases its resources.
Public methodGetDocumentReturns the current state as a new PdfDocument.
Public methodLoad(Byte)Loads a PDF document from a byte array.
Public methodLoad(PdfDocument)Loads an existing PdfDocument.
Public methodLoad(Stream)Loads a PDF document from a stream.
Public methodCode exampleLoad(String)Loads a PDF document from a file.
Public methodLoad(Byte, String)Loads a password-protected PDF document from a byte array.
Public methodLoad(PdfDocument, String)Loads an existing PdfDocument with a password.
Public methodLoad(Stream, String)Loads a password-protected PDF document from a stream.
Public methodLoad(String, String)Loads a password-protected PDF document from a file.
Public methodSaveSaves the document (with the applied security) and returns the bytes.
Public methodSave(Stream)Saves the document (with the applied security) to a stream.
Public methodCode exampleSave(String)Saves the document (with the applied security) to a file.
Public methodCode exampleSign(String, String)Signs the PDF document with the specified PFX certificate.
Public methodSign(String, String, String)Signs the PDF document with the specified PFX certificate.
Public methodSign(String, String, String, String, String, String)Signs the PDF document, recording the reason, location and contact info.
Public methodSign(String, String, String, String, String, String, Int32, RectangleF)Signs the PDF document and places a visible signature on the given page.
Public methodSign(String, String, String, String, String, String, Int32, RectangleF, TimeStampAuthority) Signs the PDF document and, optionally, timestamps it via the specified time-stamp authority.
Public methodValidateSignatures Validates every digital signature of the loaded document, trusting the certificates in the system's trusted store.
Public methodValidateSignatures(PdfDigitalCertificatesCollection) Validates every digital signature of the loaded document, trusting the given certificates as roots - for example your organisation's own certificate authority - in addition to the system's trusted store.
Top
See Also