VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Pdf Namespace / PdfDocument Class / PdfDocument Constructors / PdfDocument Constructor(Stream,Boolean)
Syntax Exceptions Remarks Example Requirements SeeAlso
In This Topic
    PdfDocument Constructor(Stream,Boolean)
    In This Topic
    Initializes a new instance of the PdfDocument class from the specified stream.
    Syntax
    'Declaration
    
    Public Function New( _
    ByVal stream
    The stream with PDF document.
    As System.IO.Stream, _
    ByVal disposeStreamAfterUse
    A value indicating whether to dispose the stream after use.
    As Boolean _
    )

    Parameters

    stream
    The stream with PDF document.
    disposeStreamAfterUse
    A value indicating whether to dispose the stream after use.
    Exceptions
    ExceptionDescription
    Thrown if stream does not contain PDF document or PDF document is not correct.
    Remarks

    This constructor opens an existing PDF document from the stream with access mode of the stream.

    Example
    Requirements

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

    See Also