Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created June 15, 2021 10:37
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/2775f7c987c6fbeb294f527b92c63eab to your computer and use it in GitHub Desktop.
Save bjoerntx/2775f7c987c6fbeb294f527b92c63eab to your computer and use it in GitHub Desktop.
@Html.TXTextControl().DocumentViewer(settings =>
{
settings.DocumentPath = Server.MapPath("~/App_Data/contract.tx");
settings.Dock = DocumentViewerSettings.DockStyle.Window;
settings.IsSelectionActivated = true;
settings.ShowThumbnailPane = true;
settings.SignatureSettings = new SignatureSettings()
{
OwnerName = "Paul Paulsen",
SignerName = Model.Signer,
ShowSignatureBar = true,
UniqueId = Guid.NewGuid().ToString(),
CustomSignatureData = new ElectronicSignatureDocumentViewer.Models.SignatureData()
{
Barcode = Model.Barcode,
Signer = Model.Signer,
IPAddress = Model.IPAddress
}
};
}).Render()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment