The TX Text Control DocumentViewer, part of TX Text Control .NET Server for ASP.NET, allows you to add and share annotations from different users to any type of document supported by TX Text Control including PDF, DOC, DOCX, RTF and the internal TX Text Control format (TX). This feature allows the easy integration of document collaboration workflow features into your TX Text Control based applications.

This feature can be also used to deploy documents or forms with additional information such as descriptions or instructions on how to fill out form fields or where to sign a document. This feature can be compared to old-fashioned "post-it" notes on paper documents. The advantage of the annotations is that you can deploy a document to users with customized notes.

Deploying Documents

Consider a user case where an invoice is shared with a client in a dedicated invoice portal and a significant change should be highlighted in the document:

Annotations

Loading and Saving Annotations

The annotations can be created using the DocumentViewer and exported externally as a JSON string with the following code:

Loading...

The following is the result of the above sample (minimized for demo purposes):

Loading...

When deploying the document using the DocumentViewer, this JSON can be loaded using the following JavaScript code:

Loading...

Live Demo

We added a new live demo to our online demo application that shows this in action. In this sample, the annotations are loaded separately into the viewer with a small delay:

Annotations

Try this on your own by launching the online demos:

Annotations