Class Security

Class Security

De naam: Aspose.Pdf.Plugins Verzameling: Aspose.PDF.dll (25.4.0)

Vertegenwoordigt Aspose.Pdf.Plugins.Security plugin.

public sealed class Security : IPlugin

Inheritance

object Security

Implements

IPlugin

Geëerbiede leden

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

Examples

Het voorbeeld laat zien hoe u een PDF-document kunt versleutelen.

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

Het voorbeeld laat zien hoe u een PDF-document decrypt.

// 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(IPluginopties)

Begin de Aspose.Pdf.Plugins.Security verwerking met de aangegeven parameters.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Een optie object met instructies voor de Aspose.Pdf.Plugins.Security.

Returns

ResultContainer

Een ResultContainer-object met het resultaat van de operatie.

Exceptions

InvalidOperationException

 Nederlands