Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / GcPdfDocument Class / Load Method / Load(Stream,DecryptionOptions) Method
The source System.IO.Stream object used to load the document content.
The DecryptionOptions object containing password and other decryption parameters.

In This Topic
    Load(Stream,DecryptionOptions) Method
    In This Topic
    Loads the document from a specified input stream, overwriting the current content of the document. The stream should contain valid PDF data and must be kept open while reading or modifying the document. If the document is modified, it can be saved using the Save(String,Boolean) or Save(Stream,Boolean) methods.
    Syntax
    'Declaration
     
    Public Overloads Sub Load( _
       ByVal stream As System.IO.Stream, _
       ByVal decryptionOptions As DecryptionOptions _
    ) 
    public void Load( 
       System.IO.Stream stream,
       DecryptionOptions decryptionOptions
    )

    Parameters

    stream
    The source System.IO.Stream object used to load the document content.
    decryptionOptions
    The DecryptionOptions object containing password and other decryption parameters.
    See Also