How to get signature line setup ID from the word document


I’m facing an issue to get the signature line Setup ID from the word document. Can you please tell me how I can get the it?

Input document and Setup ID screen shot are attached for your reference.

Best Regards,

Hi Wahaj,
Signature line is not supported at the moment so you cannot get Setup ID from Word documents. We will update you as soon as this feature is available. Issue ID is .
Signature line is inside a shape so you can get that shape using the following code.

Document doc = new Document("Document-With-Signature-Line.docx");

NodeCollection shapes = doc.GetChildNodes(NodeType.Shape, true);
foreach (Aspose.Words.Drawing.Shape shape in shapes)
    string text = shape.AlternativeText;
    if (text.Contains("Microsoft Office Signature Line"))

Best Regards,

The issues you have found earlier (filed as WORDSNET-11208) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.


  1. It is to update you that we have now added following new methods to DocumentBuilder class:
  • public Shape InsertSignatureLine(SignatureLineOptions signatureLineOptions);
  • public Shape InsertSignatureLine(SignatureLineOptions signatureLineOptions, RelativeHorizontalPosition horzPos,

double left, RelativeVerticalPosition vertPos, double top, WrapType wrapType);

Here is a simple usage example:

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
SignatureLineOptions options = new SignatureLineOptions();
options.Signer = "John Doe";
options.SignerTitle = "Manager";
options.ShowDate = false;
  1. We have also added SignatureLine property to Shape class. Here is how you can use it:
Document doc = new Document(@"C:\MyDir\Document1.docx");
Shape shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
SignatureLine signatureLine = shape.SignatureLine;
signatureLine.Signer = "John Doe2";
signatureLine.SignerTitle = "Manager2";
signatureLine.ShowDate = true;

Note! Now it is not possible to sign a signature line by digital signature in Aspose.Words.

Best regards,