@txtextcontrol/tx-ng-document-viewer
    TypeScript icon, indicating that this package has built-in type declarations

    30.0.0 • 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-viewer
       width="1000px"
       height="800px"
       basePath="https://www.server.com:5000"
       dock="Window"
       [toolbarDocked]="true"
       documentPath="test.docx"
       [isSelectionActivated]="true"
       [showThumbnailPane]="true">
    </tx-document-viewer>

    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/tx-ng-document-viewer

    DownloadsWeekly Downloads

    96

    Version

    30.0.0

    License

    none

    Unpacked Size

    69 kB

    Total Files

    23

    Last publish

    Collaborators

    • thomerow
    • bjoerntx
    • schedo