Miss any of our Open RFC calls?Watch the recordings here! »

@txtextcontrol/tx-ng-document-viewer

28.0.0-beta • Public • Published

TX Text Control Document Viewer (Angular version)

This library provides a document viewer compatible with TX Text Control and documents created using the editor and API of TX Text Control.

Prerequisites

The TX Text Control Document Viewer uses a backend that runs TX Text Control .NET Server for ASP.NET. Please use the MVC package for ASP.NET and ASP.NET Core Web Applications.

TXTextControl.Web.DocumentViewer.

Installation

ng add @txtextcontrol/tx-ng-document-viewer

Usage

Your component.html could look like this, for example (the only mandatory attributes are width, height and basePath):

<tx-document-editor
   width = "1000px"
   height = "800px"
   basePath"https://www.server.com:5000"
   dock = "Window"
   toolbarDocked = true
   documentPath = "test.docx"
   isSelectionActivated = true
   showThumbnailPane = true>
</tx-document-editor>

Possible attributes

  • width - The width of the component (e. g. "1000px").
  • height - The height of the component (e. g. "800px").
  • basePath - The backend URL.
  • toolbarDocked - Specifies whether the toolbar is docked or floating.
  • documentPath - Specified the displayed document name.
  • documentData - Sets the document data encoded as a Base64 string. Supported formats are HTML, RTF, DOC, DOCX, PDF and TX.
  • isSelectionActivated - Specifies whether text can be selected and copied.
  • signatureSettings - Specifies the signature settings.
  • showThumbnailPane - Specifies whether the thumbnail sidebar is visible or not.
  • dock - Specified how the control is docked. Possible values are 'Fill' and 'Window'.
  • resources - Specifies resources for the displayed strings.

Keywords

none

Install

npm i @txtextcontrol/[email protected]

Version

28.0.0-beta

License

none

Unpacked Size

133 kB

Total Files

32

Last publish

Collaborators

  • avatar
  • avatar