Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active October 27, 2020 15:19
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/cdad813e7097040fa86d0841bcbb0f97 to your computer and use it in GitHub Desktop.
Save bjoerntx/cdad813e7097040fa86d0841bcbb0f97 to your computer and use it in GitHub Desktop.
import React from 'react'
import DocumentViewer from '@txtextcontrol/tx-react-document-viewer'
const signatureProps = {
showSignatureBar: true,
signatureBoxName: 'txsign',
redirectUrlAfterSignature: 'https://www.textcontrol.com',
ownerName: 'Paul',
signerName: "Jakob",
signerInitials: "PK"
};
const App = () => {
return <div>
<p>DocumentViewer Sample</p>
<DocumentViewer
width= "800px"
height ="500px"
basePath = "https://backend.textcontrol.com?access-token=yourtoken"
dock = "Fill"
documentData = "SGkgdGhlcmU="
documentPath = "test.docx"
isSelectionActivated = {true}
showThumbnailPane = {true}
signatureSettings = {signatureProps}
toolbarDocked = {true}
resources = ""
/>
</div>
}
export default App
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment