Provides options for loading any encrypted file.
public CodecsDecryptOptions Decrypt { get; }
@property (nonatomic, assign) LTCodecsDecryptOptions Decrypt
public CodecsDecryptOptions getDecrypt()
public:
property CodecsDecryptOptions Decrypt {
bool get();
}
Decrypt # get (CodecsLoadOptions)
Class containing password values used to decrypt files.
Provide the password for decrypting files using this property or through the RasterCodecs.DecryptPassword event.
The RasterCodecs.Pdf.Load.Password property can also be used for loading encrypted PDF files.
The difference is that RasterCodecs.Decrypt.Password can be used for decrypting any files, whereas RasterCodecs.Pdf.Load.Password can be used to only decrypt PDF files.
using Leadtools;
using Leadtools.Codecs;
using Leadtools.ImageProcessing.Core;
public void CodecsLoadOptionsDecrypt_Example()
{
/* This sample loads Encrypted.docx, which is encrypted with the password 'MyPassword' */
using (RasterCodecs codecs = new RasterCodecs())
{
string srcFile = @"Encrypted.docx";
codecs.Options.Load.Decrypt.Password = "MyPassword";
codecs.Options.Load.AllPages = true;
using (RasterImage image = codecs.Load(srcFile))
{
codecs.Save(image, srcFile + ".tif", RasterImageFormat.TifLzw, 0);
}
}
}
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