xpdfSpliceOpenInputWithPasswordW
Open an input PDF file with a Unicode file name, with a password.
XpdfSpliceInputHandle xpdfSpliceOpenInputWithPasswordW(const wchar_t *pdfFileName,
const char *password)
This function opens an input PDF file,
pdfFileName
, from
disk, applying the specified password, and constructs a handle.
This function is identical to xpdfSpliceOpenInputWithPassword
,
except that the file name is Unicode (whcar_t*
instead
of char*
).
The xpdfSpliceOpenInputWithPassword
function returns an
XpdfSpliceInputHandle
if successful, and otherwise
returns NULL
.
IMPORTANT: The PDF file on disk must not be deleted or modified
until after xpdfSpliceCloseInput
is called.
This function is only available on Windows.
C:
XpdfSpliceInputHandle in;
in = xpdfSpliceOpenInputWithPasswordW(L"c:/test/file.pdf", "secret");
if (!in) {
/* handle the error */
}