Pdf |
Name | Description | |
---|---|---|
![]() | Sign(Object) | Initiate signing of a PDF file with a digital ID from the specified source. The digital ID source is either an instance of a X509Certificate2 with a private key or an instance of a CspParameters. The name of the preferred signature handler to use when validating the signature (Filter entry) is Adobe.PPKLite, the Format of the returned PdfSignature instance is PKCS7 and the ContentsLength is set to the internally estimated size. To finish the signing, call any of the Save. Next signing cannot be initiated before the current one is not finished. The returned PdfSignature is set to the Value thus automatically updating the Appearance. If your project doesn't target Windows platform, to use this method, make sure your project references NuGet package System.Security.Cryptography.Pkcs. |
![]() | Sign(PdfSigner) | Initiate signing of a PDF file using the specified PdfSigner that does the actual signing in a format specified by SignatureFormat. The length of the signature returned by the signer must be less than EstimatedSignatureContentsLength. The name of the preferred signature handler to use when validating the signature (Filter entry) is Adobe.PPKLite, the Format of the returned PdfSignature instance is SignatureFormat and the ContentsLength is EstimatedSignatureContentsLength bytes. To finish the signing, call any of the Save. Next signing cannot be initiated before the current one is not finished. The returned PdfSignature is set to the Value thus automatically updating the Appearance. |
![]() | Sign(String, String) | Initiate signing of a PDF file with a digital ID available as a file with the specified file name and the password protecting the private key. The most common format for such files is a PKCS#12 file, which uses .pfx or .p12 file extension and is a password protected storage container for digital IDs containing the public key (Certificate) and the associated private key. The name of the preferred signature handler to use when validating the signature (Filter entry) is Adobe.PPKLite, the Format of the returned PdfSignature instance is PKCS7 and the ContentsLength is set to the internally estimated size. To finish the signing, call any of the Save. Next signing cannot be initiated before the current one is not finished. The returned PdfSignature is set to the Value thus automatically updating the Appearance. If your project doesn't target Windows platform, to use this method, make sure your project references NuGet package System.Security.Cryptography.Pkcs. |
![]() | Sign(FuncStream, Byte, PdfSignatureFormat, Int32) | Initiate signing of a PDF file using the specified delegate that does the actual signing in a format specified by signatureFormat. The length of the signature returned by the signer delegate must be less than estimatedSignatureContentsLength. The name of the preferred signature handler to use when validating the signature (Filter entry) is Adobe.PPKLite, the Format of the returned PdfSignature instance is signatureFormat and the ContentsLength is estimatedSignatureContentsLength bytes. To finish the signing, call any of the Save. Next signing cannot be initiated before the current one is not finished. The returned PdfSignature is set to the Value thus automatically updating the Appearance. |