Class Security

Class Security

Именује се: Aspose.Pdf.Plugins Асамблеја: Aspose.PDF.dll (25.4.0)

Представља Aspose.Pdf.Plugins.Security плугин.

public sealed class Security : IPlugin

Inheritance

object Security

Implements

IPlugin

Наслеђени чланови

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

Пример показује како шифровати ПДФ документ.

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

Пример показује како дешифровати ПДФ документ.

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

Constructors

Security()

public Security()

Methods

Process(ИПЛУГИНОПЦИЈА)

Почиње се обрада Aspose.Pdf.Plugins.Security са одређеним параметрима.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Објекат опција са упутствима за Aspose.Pdf.Plugins.Security.

Returns

ResultContainer

Резултат контејнер објекат који садржи резултат операције.

Exceptions

InvalidOperationException

 Српски