We just released a prerelease version of the TX Text Control DocumentViewer for ASP.NET and ASP.NET Core with document collaboration features such as annotations and comments. This version 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.

DocumentViewer Annotations

User Specific Annotations

The DocumentViewer can be initialized with a user name that defines the current user using the UserNames property:

@Html.TXTextControl().DocumentViewer(settings =>
{
settings.DocumentPath = AppDomain.CurrentDomain.GetData("DataDirectory").ToString() +
"\\test.pdf";
settings.UserNames = new string[] { "Klaas Klaasen" };
settings.Dock = DocumentViewerSettings.DockStyle.Window;
settings.ToolbarDocked = true;
settings.ShowThumbnailPane = true;
}).Render()
view raw test.cshtml hosted with ❤ by GitHub

Using the new annotation button in the toolbar, the second annotation toolbar can be opened. Used annotation pens can be modified including colors, stroke width and opacity.

User Comments

For each annotation object, comments can be added that are stored with the given user name and a time stamp. Additionally, a status for each annotation can be set including Accepted, Rejected, Cancelled, None and Closed.

Smoothing Algorithm

Annotation lines are simplified with an efficient line smoothing algorithm. Lines are captured as vectors, stored in arrays and finally de-noised and simplified in a post-process:

The annotations can be exported separately and stored within a Text Control document to be shared with other users. This concept gives the flexibility to add annotations and comments to all supported document types including MS Word DOC, DOCX, RTF, PDF and the internal TX Text Control format.

You can test this prerelease version on your own by installing the beta version from NuGet:

https://www.nuget.org/packages/TXTextControl.Web.DocumentViewer/28.0.213.300-beta

Or you can test these features live using our online demos:

Text Control Technical Demos