Class Security
Class Security
Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll
نماینده افزونه Aspose.Pdf.Plugins.Security است.
public sealed class Security : 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 که شامل نتیجه عملیات است.