Add

DigitalSignatureCollection.Add method

在集合的末尾添加签名。

public void Add(IDigitalSignature signature)
参数类型描述
signatureIDigitalSignature要添加的签名。

示例

[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);
}

另请参见