VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Pdf.BasicTypes Namespace / PdfStream Class / SetStream(Stream,Boolean,PdfCompression,PdfCompressionSettings) Method
Syntax Requirements SeeAlso
In This Topic
    SetStream(Stream,Boolean,PdfCompression,PdfCompressionSettings) Method (PdfStream)
    In This Topic
    Sets the stream as source of this PDF stream.
    Syntax
    'Declaration
    
    Public Sub SetStream( _
    ByVal stream
    The stream that should be used as source of this PDF stream.
    As System.IO.Stream, _
    ByVal closeStreamAfterUse
    A value indicating whether the stream must be closed after use.
    True - this class will close the stream when stream is not necessary any more.
    False - this class will not close the stream, stream must not be disposed until PDF document is not saved.
    As Boolean, _
    ByVal compression
    The compression.
    As Vintasoft.Imaging.Pdf.PdfCompression, _
    ByVal compressionSettings
    The compression settings.
    As Vintasoft.Imaging.Pdf.PdfCompressionSettings _
    )

    Parameters

    stream
    The stream that should be used as source of this PDF stream.
    closeStreamAfterUse
    A value indicating whether the stream must be closed after use.
    True - this class will close the stream when stream is not necessary any more.
    False - this class will not close the stream, stream must not be disposed until PDF document is not saved.
    compression
    The compression.
    compressionSettings
    The compression settings.
    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also