Class Security

Güvenlik sınıfı

Security eklentisini temsil eder.

public sealed class Security : IPlugin

Yapıcılar

İsimAçıklama
Security()Varsayılan yapıcı.

Metotlar

İsimAçı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