Class Security

Class Security

A név: Aspose.Pdf.Plugins Összefoglaló: Aspose.PDF.dll (25.4.0)

Képesítse el az Aspose.Pdf.Plugins.Security plugin használatát.

public sealed class Security : IPlugin

Inheritance

object Security

Implements

IPlugin

Örökletes tagok

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

Examples

A példa azt mutatja, hogyan kell titkosítani a PDF dokumentumot.

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

A példa azt mutatja, hogyan lehet dekódolni PDF dokumentumot.

// 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(IPluginOpciók)

Kezdődik az Aspose.Pdf.Plugins.Security feldolgozás a meghatározott paraméterekkel.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Egy opció objektum, amely az Aspose.Pdf.Plugins.Security utasításokat tartalmazza.

Returns

ResultContainer

Egy ResultContainer objektum, amely tartalmazza a művelet eredményét.

Exceptions

InvalidOperationException

 Magyar