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

TdxPDFViewerOpenDocument Class

An action object corresponding to the OpenDocument command provided by the PDF Viewer control.

#Declaration

Delphi
TdxPDFViewerOpenDocument = class(
    TdxPDFViewerCustomAction
)

#Remarks

This class does not introduce any new public members. Executing a TdxPDFViewerOpenDocument object invokes the Open dialog, allowing a user to select a PDF document file for loading to the PDF Viewer control. If an encrypted file is selected, the Enter Password dialog is invoked, prompting an end-user to enter a user or owner password:

VCL PDF Viewer: The Enter Password Dialog

If the password is incorrect, the Enter Password dialog is repeatedly displayed either until a user enters the correct password or until the password attempts limit is reached. Note that failing to enter the required password during the last allowed attempt does not prevent an end-user from trying to load the same file again by executing the TdxPDFViewerOpenDocument action object.

For detailed information on working with encrypted PDF documents, refer to the following topic: Password Protection.

See Also