Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created March 3, 2021 19:41
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/1e9c4600e38061c931fdc47083720759 to your computer and use it in GitHub Desktop.
Save bjoerntx/1e9c4600e38061c931fdc47083720759 to your computer and use it in GitHub Desktop.
@Html.TXTextControl().DocumentViewer(settings =>
{
settings.DocumentPath = Server.MapPath("~/App_Data/Documents/nda.tx");
settings.Dock = DocumentViewerSettings.DockStyle.Fill;
settings.SignatureSettings = new SignatureSettings()
{
ShowSignatureBar = true,
OwnerName = "Paul Paulsen",
SignerName = "Tim Typer",
SignerInitials = "TT",
SignatureBoxName = "txsign",
UniqueId = uniqueID,
CustomSignatureData = new SignatureData() {
Barcode = "123",
IPAddress = Request.UserHostAddress,
Signer = "Tim Typer",
UniqueID = uniqueID
}
};
}).Render()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment