openInputStreamWithPassword
Open an input PDF file from an OLE IStream object, with a password.
openInputStreamWithPassword([in] IUnknown *streamObj, [in] BSTR password,
[out, retval] LONG *inputHandle)
This function opens an input PDF file,
pdfFileName
, from
an OLE IStream object, streamObj
, applying the specified
password, and constructs a handle.
The openInputStreamWithPassword
function throws an error
if the PDF file cannot be opened.
IMPORTANT: The PDF stream must not be destroyed or modified
until after closeInput
is called.
VB6:
Dim in as Long
Dim stream As IStream
...
in = pdf.openInputStreamWithPassword stream, "password"
VB.net:
Dim in as Long
Dim stream As IStream
...
in = pdf.openInputStreamWithPassword(stream, "password")