Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active January 14, 2021 16:17
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/fb500b03085f1da01b9e5aad3201da8d to your computer and use it in GitHub Desktop.
Save bjoerntx/fb500b03085f1da01b9e5aad3201da8d to your computer and use it in GitHub Desktop.
function initializeViewer()
{
TXDocumentViewer.init(
{ containerID: "txViewer", viewerSettings: {
signatureSettings: {
"ownerName":"",
"signatureBoxName":"txsign",
"signerName":"",
"signerInitials":"",
"showSignatureBar":false,
"uniqueId":"",
"redirectUrlAfterSignature":""
},
userNames: [],
dock: 1,
documentData: "SGVsbG8gdGhlcmU=",
documentPath: "test.docx",
toolbarDocked: true,
isSelectionActivated: true,
showThumbnailPane: true,
resources: null,
basePath: "https://backend.textcontrol.com"
}
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment