pdfLoadFileWithPasswordW

Load a PDF file from disk with a Unicode file name, with a password.
// Windows only int pdfLoadFileWithPasswordW(PDFHandle *pdfPtr, const wchar_t *pdfFileName, const char *password)
This function opens a PDF file, pdfFileName, from disk, applying the specified password, and constructs a PDF handle as *pdfPtr. This function must be called before any of the functions that access a PDF file.

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.

This function is only available on Windows.

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

C:
PDFHandle pdf; int err; err = pdfLoadFileWithPassword(&pdf, "c:/test/file.pdf", "secret"); if (err != pdfOk) { /* handle the error */ ... }
pdfLoadFile
pdfLoadFileW
pdfLoadFileWithPassword
pdfLoadMem
pdfLoadMemWithPassword
pdfFree