Class Security
İçindekiler
[
Saklamak
]Güvenlik sınıfı
Security
eklentisini temsil eder.
public sealed class Security : IPlugin
Yapıcılar
İsim | Açıklama |
---|---|
Security() | Varsayılan yapıcı. |
Metotlar
İsim | Açıklama |
---|---|
Process(IPluginOptions) | Belirtilen parametrelerle Security işlemini başlatır. |
Örnekler
Örnek, PDF belgesini nasıl şifreleyeceğini gösterir.
// create Security
var plugin = new Security();
// create EncryptionOptions object to set instructions
var opt = new EncryptionOptions("123456", "qwerty", DocumentPrivilege.ForbidAll));
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
// perform the process
plugin.Process(opt);
Örnek, PDF belgesini nasıl şifre çözme yapacağını gösterir.
// create Security
var plugin = new Security();
// create DecryptionOptions object to set instructions
var opt = new DecryptionOptions("123456"));
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
// perform the process
plugin.Process(opt);
Ayrıca Bakınız
- arayüz IPlugin
- ad alanı Aspose.Pdf.Plugins
- derleme Aspose.PDF