Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxPDFViewerPasswordDialogForm Class

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

#Declaration

Delphi
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