Skip to main content

TdxPDFViewerPasswordDialogForm Class

The form class that implements the “Enter Password” dialog.

Declaration

TdxPDFViewerPasswordDialogForm = class(
    TdxPasswordDialogForm
)

Remarks

This dialog prompts an end user to enter a password to load an encrypted PDF document.

If an end user fails to enter a proper user or owner password, a PDF document container’s LoadFromFile or LoadFromStream procedure call repeatedly invokes the dialogs, until the limit of attempts is reached. When the last attempt fails, an exception is raised:

A PDF Viewer control automatically invokes the “Enter Password” dialog when loading an encrypted PDF document. Refer to the following topic for detailed information on encrypted PDF files: Password Protection.

If you need to adjust or customize UI elements in the “Enter Password” dialog, derive a custom form from the TdxPDFViewerPasswordDialogForm class. Assign a reference to the custom dialog form class to the dxPDFViewerPasswordDialogClass global variable.

See Also