Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created August 25, 2023 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/d737b67f3ac1ed4a7c970ab6a9e08b63 to your computer and use it in GitHub Desktop.
Save bjoerntx/d737b67f3ac1ed4a7c970ab6a9e08b63 to your computer and use it in GitHub Desktop.
using (TXTextControl.ServerTextControl tx = new ServerTextControl())
{
tx.Create();
tx.Load("template.docx", TXTextControl.StreamType.WordprocessingML);
foreach (SignatureField field in tx.SignatureFields)
{
var signerData = field.SignerData;
field.SignerData = new SignerData(field.SignerData.Name,
field.SignerData.Title,
"Test",
field.SignerData.ContactInfo,
"Contract verification");
}
tx.Save("template_changed.tx", TXTextControl.StreamType.InternalUnicodeFormat);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment