Class Security
محتويات
[
يخفي
]فئة الأمان
تمثل مكون Security
.
public sealed class Security : IPlugin
المنشئات
الاسم | الوصف |
---|---|
Security() | المنشئ الافتراضي. |
الطرق
الاسم | الوصف |
---|---|
Process(IPluginOptions) | يبدأ معالجة Security مع المعلمات المحددة. |
أمثلة
المثال يوضح كيفية تشفير مستند 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);
انظر أيضًا
- واجهة IPlugin
- مساحة الأسماء Aspose.Pdf.Plugins
- التجميع Aspose.PDF