I am currently trying to update an existing Signature Line that is already inserted in to a in a Word Document and saved as a Template.
I am able to set the image path to a signature file but the image doesn’t show up. In reviewing the elements it appears that the IsValid and IsSigned are set to True when completed manually, via double clicking and manual navigation to the image file.
Currently the Aspose Word Signature class only allows for a “get” and does not have a “Set”. Is this by design or is this a feature currently on your development roadmap?
Below is an example of what I am trying to do:
Document doc = new Document(filename);
NodeCollection shapes = doc.GetChildNodes(NodeType.Shape, true);
foreach (Aspose.Words.Drawing.Shape shape in shapes)
{
if (shape.IsSignatureLine)
{
shape.SignatureLine.Signer = User.Current.FullName;
shape.SignatureLine.SignerTitle = User.Current.Title;
shape.SignatureLine.ShowDate = true;
shape.ImageData.SourceFullName = User.Current.ESignatureImagePath;
shape.SignatureLine.IsSigned = true;
shape.SignatureLine.IsValid = true;
}
}