Class Security

Класс Безопасность

Представляет плагин Security.

public sealed class Security : IPlugin

Конструкторы

ИмяОписание
Security()Конструктор по умолчанию.

Методы

ИмяОписание
Process(IPluginOptions)Запускает обработку Security с указанными параметрами.

Примеры

Пример демонстрирует, как зашифровать PDF документ.

// 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);

Пример демонстрирует, как расшифровать PDF документ.

// 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);

См. также