Class Security

Class Security

이름 공간 : Aspose.Pdf.Plugins 모임: Aspose.PDF.dll (25.4.0)

Aspose.Pdf.Plugins.Security 플러그인을 제공합니다.

public sealed class Security : IPlugin

Inheritance

object Security

Implements

IPlugin

상속 회원들

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

Examples

예제는 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);

예제는 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(IPlugin옵션)

Aspose.Pdf.Plugins.Security 처리를 지정된 매개 변수로 시작합니다.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Aspose.Pdf.Plugins.Security에 대한 지침을 포함하는 옵션 개체.

Returns

ResultContainer

작업의 결과를 포함하는 ResultContainer 개체.

Exceptions

InvalidOperationException

 한국어