openInputWithPassword

Open an input PDF file, with a password.
openInputWithPassword([in] BSTR pdfFileName, [in] BSTR password, [out, retval] LONG *inputHandle)
This function opens an input PDF file, pdfFileName, from disk, applying the specified password, and constructs a handle.

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

IMPORTANT: The PDF file on disk must not be deleted or modified until after closeInput is called.

VB6:
Dim in as Long in = pdf.openInput "c:/test/file.pdf", "password"
VB.net:
Dim in as Long in = pdf.openInput("c:/test/file.pdf", "password")
openInput
closeInput