Add()

DigitalSignatureCollection::Add(System::SharedPtr<IDigitalSignature>) method

Adds the signature at the end of collection.

void Aspose::Slides::DigitalSignatureCollection::Add(System::SharedPtr<IDigitalSignature> signature) override

Arguments

ParameterTypeDescription
signatureSystem::SharedPtr<IDigitalSignature>Signature to add.

Remarks

auto pres = System::MakeObject<Presentation>();
auto signature = System::MakeObject<DigitalSignature>(u"testsignature1.pfx", u"testpass1");
signature->set_Comments(u"Aspose.Slides digital signing test.");
pres->get_DigitalSignatures()->Add(signature);
pres->Save(u"SomePresentationSigned.pptx", Aspose::Slides::Export::SaveFormat::Pptx);

See Also