Class Security

Class Security

نام ها : Aspose.Pdf.Plugins جمع آوری: Aspose.PDF.dll (25.4.0)

این نرم افزار شامل Aspose.Pdf.Plugins.Security Plugin است.

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

یک Object ResultContainer که نتیجه عملیات را شامل می شود.

Exceptions

InvalidOperationException

 فارسی