@keyrinrin/rtf-util

a rtf util package contains parser and html convertor

Usage no npm install needed!

<script type="module">
  import keyrinrinRtfUtil from 'https://cdn.skypack.dev/@keyrinrin/rtf-util';
</script>

README

rtf util

This is a util which can parse rtf file and convert it to html format. Support image and table convert. It may has some trouble in special character.

get started

const {RtfParser} = require("@keyrinrin/rtf-util");
const {RtfConverter} = require("@keyrinrin/rtf-util");

let parser = new RtfParser();
let converter = new RtfConverter();
let rtfGroup = parser.parse(temp);
let htmlContent converter.convert(rtfGroup)

warning

This is an experimental util, don't use in production environment.