Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created September 12, 2022 21:08
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/f4ebe1428368c8642df68c47d273aef5 to your computer and use it in GitHub Desktop.
Save bjoerntx/f4ebe1428368c8642df68c47d273aef5 to your computer and use it in GitHub Desktop.
@Html.TXTextControl().DocumentViewer(settings => {
settings.DocumentPath = "App_Data/template.docx";
settings.Dock = DocumentViewerSettings.DockStyle.Fill;
settings.ShowThumbnailPane = false;
settings.SignatureSettings = new SignatureSettings() {
ShowSignatureBar = true,
OwnerName = "Paul Paulsen",
SignerName = "Tim Typer",
SignerInitials = "TT",
RedirectUrlAfterSignature = this.Url.Action("SignDocument", "Home", null, Context.Request.Scheme, null),
SignatureBoxes = new SignatureBox[] {
new SignatureBox("txsign") {
SigningRequired = true, Style = SignatureBox.SignatureBoxStyle.Signature }
}};
}).Render()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment