[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.GcPdfDocument.Load

Load Method

Load(Stream, DecryptionOptions)

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, bool) or Save(Stream, bool) methods.

Declaration
public void Load(Stream stream, DecryptionOptions decryptionOptions)
Public Sub Load(stream As Stream, decryptionOptions As DecryptionOptions)
Parameters
Type Name Description
Stream stream

The source Stream object used to load the document content.

DecryptionOptions decryptionOptions

The DecryptionOptions object containing password and other decryption parameters.

Load(Stream, byte[])

Loads the current 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, bool) or Save(Stream, bool) method.

Declaration
public void Load(Stream stream, byte[] password)
Public Sub Load(stream As Stream, password As Byte())
Parameters
Type Name Description
Stream stream

The Stream object used for loading the document content.

byte[] password

The password used to open the document.

Load(Stream, string)

Loads the current 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, bool) or Save(Stream, bool) method.

Declaration
public void Load(Stream stream, string password = null)
Public Sub Load(stream As Stream, Optional password As String = Nothing)
Parameters
Type Name Description
Stream stream

The Stream object used for loading the document content.

string password

The password used to open the document.