pdfLoadFileWithPasswordW

Load a PDF file from disk with a Unicode file name, with a password.
int pdfLoadFileWithPasswordW(PDFViewerHandle viewer, wchar_t *pdfFileName, char *password)
This function opens a PDF file, pdfFileName, from disk, applying the specified password, and displays its first page.

pdfLoadFileWithPasswordW is identical to pdfLoadFileWithPassword, except that the file name is Unicode (wchar_t* instead of char*).

The pdfLoadFileWithPassword function returns pdfOk if successful, otherwise an error code.

Note that the password argument is always an 8-bit string because the PDF format specifies 8-bit passwords.

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

C:
if (pdfLoadFileWithPasswordW(viewer, L"c:\\test\\file.pdf", "secret") != pdfOk) { /* error ... */ }
pdfLoadFile
pdfLoadFileW
pdfLoadFileWithPassword
pdfLoadMem
pdfLoadMemWithPassword
pdfLoadStream
pdfLoadStreamWithPassword
pdfCloseFile