Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.
/ rtf2text Public archive
forked from bitfocus/rtf2text

Convert rtf to text by discarding rtf information

Notifications You must be signed in to change notification settings

StatEngine/rtf2text

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rtf2text

This is a simplified RTF to text tool that just discards all RTF formatting from the document, and returns the document in plaintext.

const rtf2text = require('rtf2text')
const fs = require('fs')

parseRTF.string('{\\rtf1\\ansi\\b hi there\\b0}', (err, text) => {
  
})

parseRTF.stream(fs.createReadStream('example.rtf'), (err, text) => {
  
})

More info about the RTF parsing

Look at the rtf-parser module that this module is dependant upon. Thats where all the magic happens.

About

Convert rtf to text by discarding rtf information

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%