Document
Sign Method (Stream,
Byte
, String)
|
Create digitally signed word document.
Digital signature of documents support only DOC and DOCX formats.
Namespace:
Spire.Doc
Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public static byte[] Sign(
Stream sourceStream,
byte[] certificateData,
string securePassword
)
Public Shared Function Sign (
sourceStream As Stream,
certificateData As Byte(),
securePassword As String
) As Byte()
public:
static array<unsigned char>^ Sign(
Stream^ sourceStream,
array<unsigned char>^ certificateData,
String^ securePassword
)
static member Sign :
sourceStream : Stream *
certificateData : byte[] *
securePassword : string -> byte[]
Parameters
-
sourceStream
-
Type:
System.IO
Stream
Source file stream.
-
certificateData
-
Type:
System
Byte
the certificate data.
-
securePassword
-
Type:
System
String
Password of the certificate.
Return Value
Type:
Byte
Bytes of signed word document
See Also