@keyrinrin/rtf-util
v1.1.8
Published
a rtf util package contains parser and html convertor
Downloads
7
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.