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.
// 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 המכיל את התוצאה של הפעולה.