Class Security

Class Security

ชื่อพื้นที่: Aspose.Pdf.Plugins การประกอบ: Aspose.PDF.dll (25.4.0)

แสดง Aspose.Pdf.Plugins.Security ปลั๊กอิน

public sealed class Security : IPlugin

Inheritance

object Security

Implements

IPlugin

อนุญาโตตุลาการ

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

ตัวอย่างแสดงให้เห็นว่าวิธีการเข้ารหัสเอกสาร 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);

ตัวอย่างแสดงให้เห็นว่าวิธีการ decrypt 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);

Constructors

Security()

public Security()

Methods

Process(IPluginOptions)

เริ่มการประมวลผล Aspose.Pdf.Plugins.Security ด้วยพารามิเตอร์ที่ระบุ

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

วัตถุตัวเลือกที่มีคําแนะนําสําหรับ Aspose.Pdf.Plugins.Security

Returns

ResultContainer

วัตถุ ResultContainer ที่มีผลการดําเนินงาน

Exceptions

InvalidOperationException

 แบบไทย