Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created January 2, 2023 09:41
Show Gist options
  • Save bjoerntx/94b30bdfe722d6aa8ffde6e1acbfda7b to your computer and use it in GitHub Desktop.
Save bjoerntx/94b30bdfe722d6aa8ffde6e1acbfda7b to your computer and use it in GitHub Desktop.
@Html.TXTextControl().DocumentViewer(settings =>
{
settings.DocumentPath = "App_Data/documentflows/"
+ Model.EnvelopeId + "/template.tx";
settings.Dock = DocumentViewerSettings.DockStyle.Fill;
settings.SignatureSettings = new SignatureSettings() {
OwnerName = Model.Owner,
ShowSignatureBar = true,
SignerInitials = Model.Signer.Initials,
SignerName = Model.Signer.Name,
UniqueId = Model.EnvelopeId,
RedirectUrlAfterSignature = Url.Action("Sign", "Sign", new { signerId = Model.Signer.Id } , Context.Request.Scheme, null),
SignatureBoxes = new SignatureBox[] {
new SignatureBox(Model.Signer.SignatureFieldName) {
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