Xceed Words for .NET v5.0 Documentation
Xceed.Words.NET Assembly / Xceed.Words.NET Namespace / DocX Class / Sign Method / Sign(Stream,Stream,DigitalCertificate,SignOptions) Method
The stream containing the document to sign.
The stream that will contain the signed document.
The certificate used to sign the stream.
The options set to sign the stream. By default, null.


In This Topic
    Sign(Stream,Stream,DigitalCertificate,SignOptions) Method
    In This Topic
    Signs an input document stream with a certificate and sign options and saves the result in an output document stream.
    Syntax
    'Declaration
     
    Public Overloads Shared Sub Sign( _
       ByVal inputStream As Stream, _
       ByVal outputStream As Stream, _
       ByVal certificate As DigitalCertificate, _
       Optional ByVal signOptions As SignOptions _
    ) 
    'Usage
     
    Dim inputStream As Stream
    Dim outputStream As Stream
    Dim certificate As DigitalCertificate
    Dim signOptions As SignOptions
     
    DocX.Sign(inputStream, outputStream, certificate, signOptions)
    public static void Sign( 
       Stream inputStream,
       Stream outputStream,
       DigitalCertificate certificate,
       SignOptions signOptions
    )

    Parameters

    inputStream
    The stream containing the document to sign.
    outputStream
    The stream that will contain the signed document.
    certificate
    The certificate used to sign the stream.
    signOptions
    The options set to sign the stream. By default, null.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows, 11, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also