This library provides a document viewer to render documents in any browser including Google Chrome, Firefox, Safari and Edge.
<tx-ds-document-viewer
width="1000px"
height="500px"
serviceURL="https://yourdomain.com/DocumentServices"
oauthClientID="txtextcontrol.ry4jDzsbXEk0lYqZdY7r5ZxfpMFuor2H"
oauthClientSecret="41fk3UJGb5fgKwQ5kcf82ak5fcHV8Dr8"
documentData="SGVsbG8gdGhlcmU=">
</tx-ds-document-viewer>
<tx-document-viewer
width = "800px"
height = "800px"
serviceURL="https://yourdomain.com/DocumentServices"
oauthClientID="txtextcontrol.ry4jDzsbXEk0lYqZdY7r5ZxfpMFuor2H"
oauthClientSecret="41fk3UJGb5fgKwQ5kcf82ak5fcHV8Dr8"
[signatureSettings] = "{
showSignatureBar: true,
signatureBoxName: 'txsign',
redirectUrlAfterSignature: 'https://www.textcontrol.com',
ownerName: 'Paul', signerName: 'Jacob',
signerInitials: 'PK' }">
</tx-document-viewer>
The DocumentEditor provides a fully-featured JavaScript API that gives access to all document elements to manipulate documents programmatically. The JavaScript API is separately explained in the Reference Guide: