Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created September 16, 2022 20:46
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/54ce16a7c1268c15a4ab4a0aa3dc17af to your computer and use it in GitHub Desktop.
Save bjoerntx/54ce16a7c1268c15a4ab4a0aa3dc17af to your computer and use it in GitHub Desktop.
@Html.TXTextControl().DocumentViewer(settings => {
settings.DocumentPath = Server.MapPath("~/App_Data/signature.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",
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