pdfShowPasswordDialog

Enable/disable the password dialog.

void pdfShowPasswordDialog(PDFViewerHandle viewer, BOOL show)

When an encrypted PDF file is opened (with pdfLoadFile, etc.),
XpdfViewer will display a password dialog, requesting the user to type
the password. This function can be used to disable that behavior.
The PDF loading functions (pdfLoadFile, etc.) will instead return
an error (pdfErrEncrypted) whenever you attempt to load
an encrypted file. You can always open an encrypted file using
pdfLoadFileWithPassword, etc., which will never display a password
dialog (assuming the correct password is provided).