Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created November 30, 2023 19:52
Show Gist options
  • Save bjoerntx/73843caa6d962bbe527de05fc4d7bcc2 to your computer and use it in GitHub Desktop.
Save bjoerntx/73843caa6d962bbe527de05fc4d7bcc2 to your computer and use it in GitHub Desktop.
@Html.TXTextControl().DocumentViewer(settings => {
settings.DocumentPath = Server.MapPath("~/App_Data/Documents/form.tx");
settings.Dock = DocumentViewerSettings.DockStyle.Fill;
settings.IsSelectionActivated = false;
settings.ShowThumbnailPane = true;
settings.SignatureSettings = new SignatureSettings() {
ShowSignatureBar = true,
OwnerName = "Paul Paulsen",
SignerName = "Tim Typer",
SignerInitials = "TT",
UniqueId = uniqueID,
DefaultSignatureFont = new SignatureFontSettings() { Family = "Century" },
RedirectUrlAfterSignature = this.Url.Action("ExportPDF", "TX", null, Request.Url.Scheme, null),
SignatureBoxes = new SignatureBox[] {
new SignatureBox("txsign") { SigningRequired = true, Style = SignatureBox.SignatureBoxStyle.Signature },
new SignatureBox("txsign_init") { SigningRequired = true, Style = SignatureBox.SignatureBoxStyle.Initials }}
};
}).Render()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment