Back to Devexpress

TdxPDFViewerPasswordDialogForm Class

vcl-dxpdfviewerpassworddialog-b636904a.md

latest2.7 KB
Original Source

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.

Inheritance

Show 11 items

TObject TPersistent TComponent TControl TWinControl TScrollingWinControl TCustomForm TForm TdxForm TdxPasswordDialogForm TdxPDFViewerPasswordDialogForm

See Also

TdxPDFViewerPasswordDialogForm Members

dxPDFViewerPasswordDialog Unit