Class Security

Class Security

Der Name: Aspose.Pdf.Plugins Versammlung: Aspose.PDF.dll (25.4.0)

Es handelt sich um Aspose.Pdf.Plugins.Security Plugin.

public sealed class Security : IPlugin

Inheritance

object Security

Implements

IPlugin

Vererbte Mitglieder

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

Examples

Das Beispiel zeigt, wie PDF-Dokument verschlüsselt wird.

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

Das Beispiel zeigt, wie PDF-Dokument verschlüsselt werden kann.

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

Beginnt die Aspose.Pdf.Plugins.Security-Verarbeitung mit den angegebenen Parameter.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Ein Optionsobjekt mit Anweisungen für die Aspose.Pdf.Plugins.Security.

Returns

ResultContainer

Ein ResultContainer Objekt, das das Ergebnis der Operation enthält.

Exceptions

InvalidOperationException

 Deutsch