2018-03-11 17:03:05 +01:00
2018-03-11 17:03:05 +01:00
2018-03-03 14:20:47 +01:00
2018-02-19 04:59:21 -08:00
2018-02-25 16:39:42 +01:00
2018-02-24 00:06:34 +01:00
2018-02-24 00:06:12 +01:00
2015-09-17 20:33:55 -06:00
2018-03-05 10:46:15 +01:00
2018-03-04 16:27:48 +01:00
2018-03-04 18:10:37 +01:00
2018-03-11 17:03:05 +01:00

rtf.js

Build Status

Render RTF documents in HTML. This also includes rendering WMF and EMF images which are often contained in RTF documents.

License

The code of this project is licensed under the MIT license. See the file LICENSE for details.

Dependencies

  • rtf.js requires:
  • wmf.js and emf.js require:
  • Rendering WMF and EMF images is accomplished by using HTML5's <svg> feature.
  • Rendering RTF documents often requires rendering embedded WMF and EMF images, however rtf.js can be used without wmf.js and emf.js or with just one of them, if rendering such images is not required.

Live samples:

Developing

To develop first install the dependencies using npm install.

Building

To build the entire project and create the bundles run:

$ npm run build

Tests

Please run npm run lint first to make sure your code adheres to the style guide.

To run the test suite run:

$ npm run test

To create a new test:

$ npm run generate-testcase test-name /path/to/test.rtf

To regenerate the expected json and html for an existing test:

$ npm run regenerate-testcase test-name
S
Description
Lustro github.com/tbluemel/rtf.js
Readme MIT
14 MiB
Languages
Rich Text Format 69.9%
HTML 21.6%
TypeScript 8%
JavaScript 0.5%