Leadtools.Forms.DocumentReaders Namespace : DocumentReaderGetPasswordCallback Delegate |
'Declaration Public Delegate Function DocumentReaderGetPasswordCallback( _ ByVal fileName As String _ ) As String
'Usage Dim instance As New DocumentReaderGetPasswordCallback(AddressOf HandlerMethod)
Some documents such as PDF can be protected and cannot be read without the user supplying a password. The readers will automatically detect if a document is encrypted, and will call the DocumentReaderGetPasswordCallback delegate set in the DocumentReaderLoadOptions.GetPasswordCallback property. The application can then show a dialog box to prompt the user for the password (or set a fixed value if the password is known in advance).
For an example, refer to DocumentReaderLoadOptions.