| 
Document
Sign Method (Stream, String, 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
Syntax
 
 
public static byte[] Sign(
	Stream sourceStream,
	string certificatePath,
	string securePassword
)
 
Public Shared Function Sign ( 
	sourceStream As Stream,
	certificatePath As String,
	securePassword As String
) As Byte()
 
public:
static array<unsigned char>^ Sign(
	Stream^ sourceStream, 
	String^ certificatePath, 
	String^ securePassword
)
 
static member Sign : 
sourceStream : Stream * 
certificatePath : string * 
securePassword : string -> byte[] 
 
 
 
Parameters
 
- 
sourceStream
 
- 
 Type:
 
System.IO
Stream
 
 Source file stream
- 
certificatePath
 
- 
 Type:
 
System
String
 
 Path to the file certificate
- 
securePassword
 
- 
 Type:
 
System
String
 
 Password of the certificate.
Return Value
 
 Type:
 
Byte
 
 Bytes of signed word document
 
 See Also
See Also