Some file formats (DOC, DOCX, PDF, PPT, PPTX, XLS, XLSX, etc) can be encrypted using a password. These files will be loaded properly only if your application provides a decryption password.
The decryption password for all formats is provided through the RasterCodecs.Options.Load.Decrypt.Password property or through the RasterCodecs.DecryptPassword event.
In addition, the decryption password for PDF files can also be provided using the RasterCodecs.Options.PDF.Load.Password property.
If the password provided through the RasterCodecs.DecryptPassword event handler is not valid, the event will be fired again until one of the following happens:
It is important to be careful and avoid going into an infinite loop. If you use an event handler that returns the same password each time and the password is incorrect, your application will lock up because the event will keep getting fired until you kill the app.
If you are loading files indirectly using the Document Library, refer to Loading Encrypted Files Using The Document Library.
Loading Encrypted Files Using the Document Library |
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document