Class Security

Class Security

Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll

Aspose.Pdf.Plugins.Security 플러그인을 나타냅니다.

public sealed class Security : IPlugin

상속

objectSecurity

구현

IPlugin

상속된 멤버

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

예제

이 예제는 PDF 문서를 암호화하는 방법을 보여줍니다.

// Security 생성 
var plugin = new Security();
// 지침을 설정하기 위한 EncryptionOptions 객체 생성
var opt = new EncryptionOptions("123456", "qwerty", DocumentPrivilege.ForbidAll));
// 입력 파일 경로 추가
opt.AddInput(new FileDataSource(inputPath));
// 출력 파일 경로 설정
opt.AddOutput(new FileDataSource(outputPath));
// 프로세스 수행
plugin.Process(opt);

이 예제는 PDF 문서를 복호화하는 방법을 보여줍니다.

// Security 생성 
var plugin = new Security();
// 지침을 설정하기 위한 DecryptionOptions 객체 생성
var opt = new DecryptionOptions("123456"));
// 입력 파일 경로 추가
opt.AddInput(new FileDataSource(inputPath));
// 출력 파일 경로 설정
opt.AddOutput(new FileDataSource(outputPath));
// 프로세스 수행
plugin.Process(opt);

생성자

Security()

public Security()

메서드

Process(IPluginOptions)

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

public ResultContainer Process(IPluginOptions options)

매개변수

options IPluginOptions

Aspose.Pdf.Plugins.Security에 대한 지침을 포함하는 옵션 객체입니다.

반환

ResultContainer

작업 결과를 포함하는 ResultContainer 객체입니다.

예외

InvalidOperationException

 한국어