Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active February 2, 2022 14:48
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/6489bcf7e07b75d667c2285f900e44b5 to your computer and use it in GitHub Desktop.
Save bjoerntx/6489bcf7e07b75d667c2285f900e44b5 to your computer and use it in GitHub Desktop.
@Html.TXTextControl().DocumentViewer(settings => {
settings.DocumentPath =
AppDomain.CurrentDomain.GetData("DataDirectory").ToString() + "\\test.tx";
settings.SignatureSettings = new SignatureSettings() {
ShowSignatureBar = true,
OwnerName = "Josh Jackson",
SignerName = "Peter Petersen",
SignerInitials = "PP",
SignatureBoxName = "txsign",
UniqueId = "12345-12345-12345-12345",
RedirectUrlAfterSignature = this.Url.Action(
"HandleSignature",
"MyController",
null,
Request.Url.Scheme,
null)
};
}).Render()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment