loadStreamWithPassword

Load a PDF file from an OLE IStream object, with a password.
loadStreamWithPassword([in] IUnknown *streamObj, [in] BSTR password)
This function loads a PDF file from an OLE IStream object, applying the specified password, and displays its first page.

The loadStreamWithPassword function throws an error if the PDF file cannot be opened.

IMPORTANT: The PDF stream must not be freed or modified until after closeFile is called.

VB:
Dim stream As IStream ... viewer.loadStreamWithPassword(stream, "secret")
loadFile
loadFileWithPassword
loadStream
loadURL
loadURLWithPassword
closeFile