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 methodStatic memberCompleteExternalSignature(Byte, String, String, IListByte, PdfSignatureDigest, Byte) Writes the signature value into a prepared document held in memory and returns the signed document.
Public methodStatic memberCompleteExternalSignature(String, String, String, IListByte, PdfSignatureDigest, Byte) Writes the signature value into a document prepared with PrepareExternalSignature(IListByte, String) and saves the signed document.
Public methodDispose Releases the loaded document, the same as Close. Lets the PdfSecurityManager be used in a using statement. Calling it after Close, or more than once, does nothing.
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 methodPrepareExternalSignature(IListByte, String) Prepares the PDF document for a signature produced later, outside this call: the document is given a signature field with an empty, reserved signature, and the request to be signed is returned.
Public methodPrepareExternalSignature(IListByte, String, String, String, String, Int32, RectangleF) Prepares the PDF document for a signature produced later, recording the reason, location and contact info and placing a visible signature on the given page.
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 methodSign(IPdfExternalSigner) Signs the PDF document with an external signer - a key held in a hardware security module, a smart card or a key service.
Public methodSign(IPdfExternalSigner, String)Signs the PDF document with an external signer.
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(IPdfExternalSigner, String, String, String, String)Signs the PDF document with an external signer, recording the reason, location and contact info.
Public methodSign(String, String, String, String, String, String)Signs the PDF document, recording the reason, location and contact info.
Public methodSign(IPdfExternalSigner, String, String, String, String, Int32, RectangleF)Signs the PDF document with an external signer and places a visible signature on the given page.
Public methodSign(IPdfExternalSigner, String, String, String, String, Int32, RectangleF, TimeStampAuthority) Signs the PDF document with an external signer and, optionally, timestamps it via the specified time-stamp authority.
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