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

 عربي