LEADTOOLS Forms (Leadtools.Forms.DocumentReaders assembly)

DocumentReaderGetPasswordCallback Delegate

Show in webframe





The same file name passed to DocumentReader.Create.
Prompts the user for a password if the document is encrypted.
Syntax
public delegate string DocumentReaderGetPasswordCallback( 
   string fileName
)
'Declaration
 
Public Delegate Function DocumentReaderGetPasswordCallback( _
   ByVal fileName As String _
) As String
'Usage
 
Dim instance As New DocumentReaderGetPasswordCallback(AddressOf HandlerMethod)

            

            
public delegate String^ DocumentReaderGetPasswordCallback( 
   String^ fileName
)

Parameters

fileName
The same file name passed to DocumentReader.Create.

Return Value

The password to use if this document is encrypted.
Remarks

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).

Example

For an example, refer to DocumentReaderLoadOptions.

Requirements

Target Platforms

See Also

Reference

DocumentReaderGetPasswordCallback Members
Leadtools.Forms.DocumentReaders Namespace

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Forms.DocumentWriters requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features