Class Security

Class Security

Nom dels espais: Aspose.Pdf.Plugins Assemblea: Aspose.PDF.dll (25.4.0)

Representa el plugin Aspose.Pdf.Plugins.Security.

public sealed class Security : IPlugin

Inheritance

object Security

Implements

IPlugin

Membres heretats

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

Examples

L’exemple demostra com encriptar el document 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);

L’exemple demostra com desxifrar el document 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(Opcions IPlugin)

Comença el tractament Aspose.Pdf.Plugins.Security amb els paràmetres especificats.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Un objecte d’opcions que conté instruccions per a Aspose.Pdf.Plugins.Security.

Returns

ResultContainer

Un objecte ResultContainer que conté el resultat de l’operaci.

Exceptions

InvalidOperationException

 Català