RTF2HTML Module
Contact me at bradyh@bitstream.net
Features
Visual Basic module which changes text from RTF to HTML. Note that it requires an entire RTF document including header codes, however the text it outputs does not include the HTML header codes. This is a feature not a bug since the header codes are much easier to add than to remove.
The program currently supports the following:
- Most if not all ascii characters are converted from RTF codes to HTML codes
- Bold, Italicized, Strikeout and Underlined text
- Bulleted lists
- Colored fonts
- Fonts
- Font Size
- Centered and Right justified text
- Produces clean and correct HTML
- Other stuff...
Download
rtf2html3.zip - Version 3.02: Newest version.
rtf2htmltest.zip - Example/Debugger for rtf2html3
rtf2html.zip - Old version. Note: doesn't work with Win2K and Office 2K but may be faster and it fits in a single function.
Branches (these are versions submitted by volunteers, try them out, they may work for you)
rtf2html3_branch01.bas - Branch by Michael Maier with font and special character additions.
Changelog
3.02 (2/20/2003)
- Now with fonts!
- I'm looking into supporting graphics...ouch...complicated stuff.
3.01 (1/29/2003)
- rtf2html3 is finally out of beta
- It does bullets!
- I tested it fairly extensively and it's much much better than the old version. I've been trying for robustness rather than speed so it may be slow but it seems to work pretty good. It's slow going because I don't use VB much anymore - do most of my developement on Linux.
3.01b3 (7/6/2001)
- I finally got a 3.0 version (beta)
- It still has some "issues" but it seems to work pretty good on simple rtf documents and it's much more flexible than rtf2html 2.x
2.13 (12/6/1999)
- No time lately to work on 3.0 (sigh)
- For awhile all spaces were showing up as non-breaking-spaces but now only spaces at the beginning of a line show up that way.
2.8/2.9 (7/21/1999)
- Started work on 3.0 using better parsing methodology
- Haven't had time to roll some foreign language support into this version - if anybody needs it they can contact me.
- Bug fix for title appearing with extra "
2.6/2.7 (5/28/1999)
- Added support for centered and right aligned text
- Bug fix for disappearing characters
2.5 (4/30/1999)
- Added support for font sizes
2.4 (4/27/1999)
- Added support for fonts
- Changed handling of font info to make it easier to add other tags in the future
2.3 (4/14/1999)
2.2
- Added support for bullets
Wishlist (These are items that aren't implimented yet but seem like things that might be handy)
- Optional code to tell RTF2HTML to put VBCRLFs into the code where appropriate (currently the output is all on one line)
- Optional code to tell RTF2HTML to add HTML header and footer info
- Handle RTF hyperlinks (and MailTos?)
Back to brady space