Some file formats (DOC, DOCX, PDF, PPT, PPTX, XLS, XLSX, etc) are encrypted using a password. These files will be loaded properly only if your application provides a decryption password.
The FILEDECRYPTOPTIONS structure has two mechanisms for providing a password:
If the password provided by FILEDECRYPTCALLBACK callback is not valid, the callback will be called again until one of the following happens:
The user is responsible to avoid infinite loops. If the FILEDECRYPTCALLBACK returns each time the same incorrect password, the application will go into an infinite loop, because when the callback returns an invalid password, LEADTOOLS will call it again. Then the process would never end, consuming a lot of CPU time until the user kills the application.
These settings are only valid for the current thread. In multi-threaded applications, call L_SetDecryptOptions in each thread that needs to load encrypted files.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries