Class Signature
Class Signature
Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll
表示 Aspose.Pdf.Plugins.Signature 插件。
public sealed class Signature : IPlugin
继承
实现
继承成员
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
示例
该示例演示了如何对 PDF 文档进行签名。
// 创建 Signature
var plugin = new Signature();
// 创建 SignOptions 对象以设置指令
var opt = new SignOptions(inputPfx, inputPfxPassword);
// 添加输入文件路径
opt.AddInput(new FileDataSource(inputPath));
// 设置输出文件路径
opt.AddOutput(new FileDataSource(outputPath));
// 执行处理
plugin.Process(opt);
构造函数
Signature()
public Signature()
方法
Process(IPluginOptions)
使用指定参数启动 Aspose.Pdf.Plugins.Signature 处理。
public ResultContainer Process(IPluginOptions options)
参数
options
IPluginOptions
一个包含 Aspose.Pdf.Plugins.Signature 指令的选项对象。
返回
一个包含操作结果的 ResultContainer 对象。