Add
DigitalSignatureCollection.Add method
在集合的末尾添加签名。
public void Add(IDigitalSignature signature)
参数 | 类型 | 描述 |
---|---|---|
signature | IDigitalSignature | 要添加的签名。 |
示例
[C#]
using (Presentation pres = new Presentation())
{
DigitalSignature signature = new DigitalSignature("testsignature1.pfx", @"testpass1");
signature.Comments = "Aspose.Slides 数字签名测试。";
pres.DigitalSignatures.Add(signature);
pres.Save("SomePresentationSigned.pptx", SaveFormat.Pptx);
}