pdfLoadFileWithPassword

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

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

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

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