The new prerelease version of the TX Text Control DocumentViewer NuGet package allows you to host the required backend endpoints in an ASP.NET or ASP.NET Core Web Application. This backend can then be used by the Angular version of the DocumentViewer.
Adding the Viewer to HTML
Add the Script tag to your HTML file in the head section:
When hosted on your own, replace https://backend.textcontrol.com/ViewerBackend with your endpoint URL.
Add a hosting element to your HTML:
Add the following script tag to your HTML and set the id of the hosting element to the containerID property:
Also here, replace the basePath with your endpoint URL when hosted on your own.
DocumentViewer in Action
In the above StackBlitz widget Preview click on Browse.... In the opened dialog, select a local document in the format *.rtf, *.doc, *.html or *.docx and confirm with Open.