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. It must be called before any of the other functions that access the PDF file.

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 ... pdf.loadStreamWithPassword(stream, "secret")
loadFile
loadFileWithPassword
loadStream
closeFile