Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created August 18, 2020 10:20
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/4a89bcd11dc5d9094590543136a97a80 to your computer and use it in GitHub Desktop.
Save bjoerntx/4a89bcd11dc5d9094590543136a97a80 to your computer and use it in GitHub Desktop.
function LoadViewer() {
var bDocument;
var signatureSettings = {
signerName: "Tim Typer",
signerInitials: "TT",
uniqueId: "12345-ABCDE",
redirectUrlAfterSignature: "CreatingSignatures?signed=true",
ownerName: "Document Requestor",
signatureBoxName: "txsign",
showSignatureBar: true
}
// save document
TXTextControl.saveDocument(TXTextControl.StreamType.InternalUnicodeFormat, function (e) {
bDocument = e.data;
TXDocumentViewer.loadDocument(
bDocument,
"pleasesignme.tx",
signatureSettings);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment