Class Security
Class Security
Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll
แทนที่ Aspose.Pdf.Plugins.Security plugin.
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 ที่มีผลลัพธ์ของการดำเนินการ.