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.

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

المنشئات

Security()

public Security()

الأساليب

Process(IPluginOptions)

يبدأ معالجة Aspose.Pdf.Plugins.Security مع المعلمات المحددة.

public ResultContainer Process(IPluginOptions options)

المعلمات

options IPluginOptions

كائن خيارات يحتوي على تعليمات لـ Aspose.Pdf.Plugins.Security.

العودة

ResultContainer

كائن ResultContainer يحتوي على نتيجة العملية.

الاستثناءات

InvalidOperationException

 عربي