Last active
October 27, 2020 15:19
-
-
Save bjoerntx/cdad813e7097040fa86d0841bcbb0f97 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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