Skip to main content

TdxPDFViewerOpenDocument Class

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

Declaration

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