Fork of 'html-to-rtf'
npm install @jerseygooner/html-to-rtf
$ npm install html-to-rtf
`Changelog
`
* Encoding string correctly (v2.0.1)
* Setting correct space and fix some insecure dependencies (v2.0.4)
* Improving better control of spaces (v2.1.0)
`Starting in the Browser
`html
Teste HTML TO RTF
HTML To RTF Example:
HTML
RTF
`
##### Observation:
#
>There is a file example (index.html) in "./node_modules/html-to-rtf/app/browser/index.html"
#
#
Starting in the Server
`javascript
var htmlToRtf = require('html-to-rtf');
var html =
text of paragraph text with bold text with italic and boldtext with italic
red paragraph => right with tag
blue paragraph => center with style
| column 1 | column 2 | column 3 | column 4 |
| content 1 | content 2 | content 3 | content 4 |
htmlToRtf.saveRtfInFile('/.rtf', htmlToRtf.convertHtmlToRtf(html))
`> Now test in your preferred text editor (wordpad, word, libreoffice, ...).
##
##### Important:
#
> You can't copy the output of terminal.
> Save the output at a file.rtf
$3
`html
,
, , , , , , , , ,
, , , , , ,
, , , , ,
, , , , , ,
`
$3
> color(Hex and Rgb), font-size(px), text-align
Running the tests
`
$ gulp tests
``Author
> * Ozires R.S.O.F
License
This project is licensed under the MIT License