Class Security
Class Security
Tên không gian: Aspose.Pdf.Plugins Tổng hợp: Aspose.PDF.dll (25.4.0)
Hiển thị Aspose.Pdf.Plugins.Security plugin.
public sealed class Security : IPlugin
Inheritance
Implements
Thành viên thừa kế
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Ví dụ này cho thấy cách mã hóa tài liệu 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);
Ví dụ này cho thấy cách giải mã tài liệu 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(IPluginTùy chọn)
Bắt đầu xử lý Aspose.Pdf.Plugins.Security với các thông số được chỉ định.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Một đối tượng tùy chọn chứa hướng dẫn cho Aspose.Pdf.Plugins.Security.
Returns
Một đối tượng ResultContainer chứa kết quả hoạt động.