Signature Field

Hi there,

i want to add a Field for a digital Signature (not the Signature itself) to a word document. Is there any chance to do so via Aspose?

Cheers Rob

Hi,

sorry i found out late, that there now exists the SignatureLine/Options Class. Are there further examples somewhere, how to insert to an existing Document?

Thanks Rob

Hi Rob,

Thanks for your inquiry. You can insert a signature line in Word document by using the following code:

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

SignatureLineOptions options = new SignatureLineOptions();
options.setSigner("Awais Hafeez");
options.setSignerTitle("Aspose.Words");
options.setShowDate(false);
builder.insertSignatureLine(options);

doc.save("D:\temp\awjava-17.2.0.docx");
doc.save("D:\temp\awjava-17.2.0.pdf");

Hope, this helps.

Best regards,

Thanks for your help, that worked out perfectly for this purposeā€¦

Hi Awais,

as of the Documentation of Word, there is another property in the signatureline that is not covered by Aspose. The SignatureProvider. Details from VBA you can find here:
https://docs.microsoft.com/en-us/office/vba/api/Office.SignatureSet.AddSignatureLine

would be good to have a chance to set this via Aspose as well. May this be added to the change Requests

Thanks and Regards

Rob

Hi Rob,

Thanks for your inquiry. We have logged your requirement in our issue tracking system. The ID of this issue is WORDSNET-14984. Our product team will further look into the details of this problem and we will keep you updated on the status of this issue. We apologize for any inconvenience.

Best regards,

@tmdolphin,

The issues you have found earlier (filed as WORDSNET-14984) have been fixed in this Aspose.Words for .NET 17.10 update and this Aspose.Words for Java 17.10 update.