Enable/disable the password dialog.
[read/write property] showPasswordDialog([out, retval] VARIANT_BOOL *show) showPasswordDialog([in] VARIANT_BOOL show)
When an encrypted PDF file is opened (with loadFile, 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 (loadFile, etc.) will instead throw an error (errEncrypted) whenever you attempt to load an encrypted file. You can always open an encrypted file using loadFileWithPassword, etc., which will never display a password dialog (assuming the correct password is provided).
viewer.showPasswordDialog = False