PdfSignatureFieldSign Method (Object)
Initiate signing of a PDF file with a digital ID object.
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 2199 bytes.
To finish the signing, call any of the Save Overload. Next signing cannot be initiated before the current one is not finished.
This method is not supported in GemBox.Pdf for .NET Standard because implementation uses System.Security.Cryptography.Pkcs types which are available only in .NET Framework.
public PdfSignature Sign( Object digitalId )
Public Function Sign ( digitalId As Object ) As PdfSignature
|NotSupportedException||This method is not supported in .NET Standard. Use Sign(FuncStream, Byte, PdfSignatureFormat, Int32) method instead.|
|InvalidOperationException||This PdfSignatureField is not contained in the Fields of this PDF document. -or- Signing of the PDF file has already been initiated on some PdfSignatureField in this PDF document. Finish that signing by calling any of the Save Overload before initiating a new signing on this PdfSignatureField.|
|ArgumentException||The digitalId parameter is not an instance of a X509Certificate2 or a CspParameters.|