Class Security

Class Security

Numele spaţiului: Aspose.Pdf.Plugins Asamblare: Aspose.PDF.dll (25.4.0)

Representează pluginul Aspose.Pdf.Plugins.Security.

public sealed class Security : IPlugin

Inheritance

object Security

Implements

IPlugin

Membrii moștenitori

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

Examples

Exemplul demonstrează modul de criptare a documentului 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);

Exemplul demonstrează modul de descărcare a documentului 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);

Constructors

Security()

public Security()

Methods

Process(Opțiuni IPlugin)

Începe procesarea Aspose.Pdf.Plugins.Security cu parametrii specificați.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Un obiect de opțiuni care conține instrucțiuni pentru Aspose.Pdf.Plugins.Security.

Returns

ResultContainer

Un obiect ResultContainer care conține rezultatul operațiunii.

Exceptions

InvalidOperationException

 Română