Created
August 25, 2023 13:12
-
-
Save bjoerntx/d737b67f3ac1ed4a7c970ab6a9e08b63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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